Cocoa scripting takes advantage of key-value coding to get and set information in scriptable objects. The methods in this category provide additional capabilities for working with key-value coding, including getting and setting key values by index in multivalue keys and coercing (or converting) a key value. Additional methods allow the implementer of a scriptable container class to provide fast access to elements that are being referenced by name and unique ID.
- macOS 10.0+
Because Cocoa scripting invokes
mutable, changes to model objects made by AppleScript scripts are observable using automatic key-value observing.