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

NSScriptKeyValueCoding — Mac OS X 10.0

Synopsis

This protocol defines additional key-value coding functionality beyond that of NSKeyValueCoding. The additional functionality provides support for scriptability in Cocoa.

@interface NSObject (NSScriptKeyValueCoding)
                                  // Instance Methods
   - (id)valueAtIndex:(unsigned)index 
                                 inPropertyWithKey:(NSString *)key;
   - (id)valueWithName:(NSString *)name 
                                 inPropertyWithKey:(NSString *)key;
   - (id)valueWithUniqueID:(id)uniqueID 
                                 inPropertyWithKey:(NSString *)key;
   - (void)replaceValueAtIndex:(unsigned)index 
                                 inPropertyWithKey:(NSString *)key 
                                 withValue:(id)value;
   - (void)insertValue:(id)value 
                                 atIndex:(unsigned)index 
                                 inPropertyWithKey:(NSString *)key;
   - (void)removeValueAtIndex:(unsigned)index 
                                 fromPropertyWithKey:(NSString *)key;
   - (void)insertValue:(id)value 
                                 inPropertyWithKey:(NSString *)key;
   - (id)coerceValue:(id)value 
                                 forKey:(NSString *)key;
@end

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