type conversion for scriptable objects
type conversion for scriptable objects
- Subject: type conversion for scriptable objects
- From: Michael Robinette <email@hidden>
- Date: Sat, 20 Sep 2003 09:38:52 -0700
I think I've got most of my AppleScript stuff figured out, except for
this.
Similar to how you you would debug Cocoa objects by using [obj
description]; I'd like to be able to use the following syntax in
applescript:
tell application "MyApp"
get object 1
result as string
end tell
I tried registering a coercion handler, but that didn't work.
I register the handler in my class's initialize method toConvertFrom:
[MyObject class] toClass: [NSString class]
- michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.