O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

image with no caption

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required