• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
type conversion for scriptable objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: mysql question
  • Next by Date: execle err=22
  • Previous by thread: Re: NSBorderlessWindowMask with key events
  • Next by thread: execle err=22
  • Index(es):
    • Date
    • Thread