This module contains UDA's (User Defined Attributes) either used in the runtime or special UDA's recognized by compiler.
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:
extern(Objective-C).
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:");
}
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/core_attribute.html