Skip to content
Luiji edited this page May 17, 2011 · 12 revisions

Questions

Yes! There is also a sample Xcode project you can use as a starting point.

  • Can I use luac to compile my lua files to the phone?

You sure can! Check out this page for instructions

  • Do I need to use Git to download Wax?

No, you can also download it via this url https://github.com/probablycorey/wax/archives/master

Common Errors

  • Error invoking method 'addSubview:' on 'UIWindow' because -[??? superview]: unrecognized selector sent to instance?

    If you are trying to add a UIViewController, make sure you are adding the view, not the viewController.

  • -[NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0xXXXXXXXX?

    Objective-C expects a string but you sent it something else. If you want to send an object as a string use the tostring() function first.

  • Why aren't my delegate/datasource methods being called?

    Did you declare the protocols in your waxClass? It should look like this.

    waxClass{"MyController", UITableViewController, protocols={"UITableViewDelegate", "UITableViewDataSource"}}  
  • Could not find protocol named 'XXX'?

First try adding the protocol to the file ProtocolLoader.h located in your project (This file is included in the Wax XCode template.) If that doesn't fix the problem, follow the steps below.

Are you using a framework (like MapKit or MessageUI) that isn't included by default? You will need to add it to your project

  1. In Xcode, right-click "Frameworks" -> "Add" -> "Existing Frameworks".

  2. Then select "XXX.framework" and click OK.

  3. In main.m import the framework. For example, with MapKit you would type #import <MapKit/MapKit.h>

Clone this wiki locally