Tuesday, November 3, 2009

Implementing AppleScript Recordability

Andy Finnell:

The ASObj function creates an ASObject proxy object for any NSObject that implements objectSpecifier. invokeCommand takes care of marshalling the parameters into an AppleEvent, sending it, and unmarshalling the return value into an NSObject. The name of the command is the name of the name used in AppleScript, not the Cocoa implementation.

Then his controllers use the proxy objects to talk to the model through AppleScript.

Comments RSS · Twitter

Leave a Comment