Questions tagged [iphone-wax]

Use this tag for questions related to Wax framework for writing native iPhone apps in Lua.

Wax is a framework that lets you write native iPhone apps in Lua. It bridges Objective-C and Lua using the Objective-C runtime. With Wax, anything you can do in Objective-C is automatically available in Lua!

11 questions
16
votes
1 answer

How to embed iPhone-Wax into app

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…
John Smith
  • 12,491
  • 18
  • 65
  • 111
6
votes
2 answers

Trying to create NSDecimal in iPhone-Wax

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…
John Smith
  • 12,491
  • 18
  • 65
  • 111
6
votes
3 answers

Lua idioms compiled in one place

I am using Lua for some of my apps. I am looking for a central repository of Lua idioms because I don't want to write C in Lua. A few examples I've come across are: x = x or v This sets a default value for x if it is not already set. Another is x,…
John Smith
  • 12,491
  • 18
  • 65
  • 111
1
vote
1 answer

Accessing Objective-C Instance in Wax

There are some use cases I want to create instance of certain objects in objc and access them in Lua/Wax. I read the entire documentation but I'm still uncertain how to accomplish this. Some Demo Code (doesn't work, but you should get the idea)…
Henrik P. Hessel
  • 36,243
  • 17
  • 80
  • 100
1
vote
0 answers

iPhone Wax accessing already instantiated classes

I am trying to access already instantiated OBjC classes via Lua. How can I do it?
John Smith
  • 12,491
  • 18
  • 65
  • 111
1
vote
2 answers

Wax for iPhone5

Wax is a nice framework, we can programming in lua on iOS. I try it on iPhone5, the code: local frame =UIScreen:mainScreen():bounds() always return 320*480. This is not right on iPhone5. How to return the correct frame of the device screen? The Wax…
user501836
  • 1,106
  • 1
  • 12
  • 20
0
votes
1 answer

Trying to create honest NSDecimalNumber in Wax

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…
John Smith
  • 12,491
  • 18
  • 65
  • 111
0
votes
1 answer

Integrate core-plot and wax?

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?
John Smith
  • 12,491
  • 18
  • 65
  • 111
0
votes
3 answers

Run Wax on 64-bit iOS with arm64 Architecture

I was stuck in this problem for many days. Wax(https://github.com/probablycorey/wax support armv7 and armv7s architecture only, but my project uses arm64 architecture. The error message is "Error opening wax scripts: loading wax stdlib: bad header…
Li Song
  • 11
  • 1
0
votes
1 answer

How do I load my byte code files when using wax.framework

I am using wax.framework (note: it's a framework file) in my iOS project, but i don't know how to load my byte code files when using wax.framework. This link (https://github.com/probablycorey/wax/wiki/Luac) said it can load byte code files, does…
0
votes
2 answers

Problems with Object-C++ and Framework

I have this project that needs to integrate Box2D, Cocos2d-iPhone and iPhone wax. At first I put cocos2d-iphone and box2d together, and it gives me this error message: fatal error: 'cassert' file not found #include