Name
NSScriptCoercionHandler — Mac OS X 10.0
Synopsis
This class is used by Cocoa’s scripting system to translate one scripting data type into another data type, which is a common task in key-value coding operations.
|
@interface NSScriptCoercionHandler : NSObject
|
// Class Methods
|
+ (NSScriptCoercionHandler *)sharedCoercionHandler;
|
// Instance Methods
|
- (id)coerceValue:(id)value toClass:(Class)toClass; |
- (void)registerCoercer:(id)coercer selector:(SEL)selector toConvertFromClass:(Class)fromClass toClass:(Class)toClass; |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.