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 {}
}
The generated Xcode project fails to build (even without actually implementing the interface, just defining it breaks things):