NSScriptCoercionHandler

NSScriptCoercionHandler Mac OS X 10.0

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.

figs/cocn_1393.gif

@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;



    Part II: API Quick Reference
    Chapter 13. Foundation Classes