Overview
概要
Cocoa scripting takes advantage of key-value coding to get and set information in scriptable objects.
Cocoaスクリプティングは、「キー値」コーディングを利用して、スクリプト対応オブジェクの中の情報を取得及び設定します。
The methods in this category provide additional capabilities for working with key-value coding, including getting and setting key values by index in multi-value 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.
Because Cocoa scripting invokes setValue(_:forKey:)
and mutableArrayValue(forKey:)
, changes to model objects made by AppleScript scripts are observable using automatic key-value observing.