Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pure-Haxe interfaces don't work #1

Open
zeen opened this issue Jun 26, 2013 · 0 comments
Open

Pure-Haxe interfaces don't work #1

zeen opened this issue Jun 26, 2013 · 0 comments

Comments

@zeen
Copy link

zeen commented Jun 26, 2013

The generated Xcode project fails to build (even without actually implementing the interface, just defining it breaks things):

import objc.foundation.NSDictionary;
import ios.ui.UIApplicationMain;
import ios.ui.UIApplicationDelegate;
import ios.ui.UIResponder;
import ios.ui.UIApplication;
import ios.ui.UIWindow;

interface MyInterface {}
class MyClass /*implements MyInterface*/ {
    public function new() { trace("New!"); }
}

class InterfaceTest extends UIResponder implements UIApplicationDelegate {

    public static function test() {
        trace("Before");
        var v = new MyClass();
        trace("After");
    }

    public static function main() { return new UIApplicationMain ( InterfaceTest ); }
    public static function unusedMain(){}
    public var window :UIWindow;
    public function application(application:UIApplication, didFinishLaunchingWithOptions:NSDictionary) :Bool {
        test();
        return true;
    }
    public function applicationDidBecomeActive(application:UIApplication) :Void {}
    public function applicationWillResignActive(application:UIApplication) :Void {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant