1 extern (Objective-C) 2 class NSObject 3 { 4 this() @selector("init"); 5 static NSObject alloc() @selector("alloc"); 6 NSObject initWithUTF8String(in char* str) @selector("initWithUTF8String:"); 7 ObjcObject copyScriptingValue(ObjcObject value, NSString key, NSDictionary properties) 8 @selector("copyScriptingValue:forKey:withProperties:"); 9 }
Use this attribute to attach an Objective-C selector to a method.
This is a special compiler recognized attribute, it has several requirements, which all will be enforced by the compiler:
,
,
,