selector

Use this attribute to attach an Objective-C selector to a method.

version(D_ObjectiveC)
struct selector {}

Members

Variables

selector
string selector;
Undocumented in source.

Examples

extern (Objective-C)
class NSObject
{
    this() @selector("init");
    static NSObject alloc() @selector("alloc");
    NSObject initWithUTF8String(in char* str) @selector("initWithUTF8String:");
    ObjcObject copyScriptingValue(ObjcObject value, NSString key, NSDictionary properties)
        @selector("copyScriptingValue:forKey:withProperties:");
}

Meta