class func webScriptName (forKey : UnsafePointer<CChar>!) -> String!
class func isSelectorExcluded (fromWebScript : Selector!) -> Bool
class func isKeyExcluded (fromWebScript : UnsafePointer<CChar>!) -> Bool
Availability
Technology
aSelector
The selector.
The name used to represent the selector in the scripting environment.
It is your responsibility to ensure that the returned name is unique to the script invoking this method. If this method returns nil
or you do not implement it, the default name for the selector is constructed as follows:
A colon (“:”) in the Objective-C selector is replaced by an underscore (“_”).
An underscore in the Objective-C selector is prefixed with a dollar sign (“$”).
A dollar sign in the Objective-C selector is prefixed with another dollar sign.
The following table shows examples of how the default name is constructed:
Objective-C selector |
Default script name for selector |
---|---|
|
|
|
|
|
|
|
|
Since the default construction for a method name can be confusing depending on its Objective-C name, you should implement this method and return a more human-readable name.
class func webScriptName (forKey : UnsafePointer<CChar>!) -> String!
class func isSelectorExcluded (fromWebScript : Selector!) -> Bool
class func isKeyExcluded (fromWebScript : UnsafePointer<CChar>!) -> Bool