iphone-wax

Integrate core-plot and wax?

家住魔仙堡 提交于 2020-01-06 04:51:26
问题 Has anyone managed to use core-plot from wax? I have been trying recently, but got stumped on NSDecimal. Wax does not want to deal with it. How can i get around this issue? 回答1: I succeeded in working around the NSDecimal system by rewriting the parts which used it. 来源: https://stackoverflow.com/questions/6475890/integrate-core-plot-and-wax

Integrate core-plot and wax?

微笑、不失礼 提交于 2020-01-06 04:51:09
问题 Has anyone managed to use core-plot from wax? I have been trying recently, but got stumped on NSDecimal. Wax does not want to deal with it. How can i get around this issue? 回答1: I succeeded in working around the NSDecimal system by rewriting the parts which used it. 来源: https://stackoverflow.com/questions/6475890/integrate-core-plot-and-wax

Trying to create honest NSDecimalNumber in Wax

爷,独闯天下 提交于 2019-12-12 06:23:24
问题 As I studied the issue I am facing in Trying to create NSDecimal in iPhone-Wax I am now aiming much lower. How can I create a fully functional NSDecimalNumber in Wax? I have added the following two lines at the top of AppDelegate.lua in a fresh wax project. local x = NSDecimalNumber:initWithString("2.3") print(x) print(x:class()) The output is (0x631e054 => 0x631d1a0) 2.3 (0x631e924 => 0x25f618) NSCFNumber instead of something like (0x621e834 => 0x620c550) <NSDecimalNumber: 0x620c550> Turning

Trying to create NSDecimal in iPhone-Wax

此生再无相见时 提交于 2019-12-10 13:15:56
问题 Here is a problem I am facing: I create an NSDecimalNumber in Wax with the line local x=NSDecimalNumber:initWithString("2.3") Out of this I would like to create a NSDecimal with the following line local y=x:decimalValue() This promptly crashes the program. To create the same experience you need to create a basic wax project and add the two lines as the lat lines of function applicationDidFinishLaunching in AppDelegate.lua. Question: How can I get this to return an honest NSDecimal which I can

How to embed iPhone-Wax into app

故事扮演 提交于 2019-12-04 16:12:28
问题 I have just learnt about iPhone-Wax (thanks to SO). Now the documentation is rather sparse for what I am trying to do. I want to embed it into an Objective-C app. I don't want it to be the main app. Has anyone done it and how can I achieve it? I would like to use it in the same way LuaObjectiveCBridge is used. 回答1: If I understand correctly, you want to create an ad-hoc Lua class?! It is as simple as this: you have a Lua script (script.lua): waxClass{"LuaClass"} function myMethod(self, object

How to embed iPhone-Wax into app

馋奶兔 提交于 2019-12-03 10:17:44
I have just learnt about iPhone-Wax (thanks to SO). Now the documentation is rather sparse for what I am trying to do. I want to embed it into an Objective-C app. I don't want it to be the main app. Has anyone done it and how can I achieve it? I would like to use it in the same way LuaObjectiveCBridge is used. If I understand correctly, you want to create an ad-hoc Lua class?! It is as simple as this: you have a Lua script (script.lua): waxClass{"LuaClass"} function myMethod(self, object) object:doSomething() end and in your obj-c code: ... luaL_dofile(wax_currentLuaState(), "script.lua");