• 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
Re: cocoa scripting: selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa scripting: selection


  • Subject: Re: cocoa scripting: selection
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 25 Sep 2005 10:25:45 -0700
  • Thread-topic: cocoa scripting: selection

On Fri, 23 Sep 2005 10:29:13 -0700, Ken Victor <email@hidden> said:
>i still don't understand why my selection method needs to return an
>NSArray of objectSpecifiers for this to work, rather than an array of
>objects

There is no documentation whatever on what you should return from an
NSScriptCommand's performDefaultImplementation or an object-first dispatch
method that receives an NSScriptCommand as parameter. The only option is
trial and error. As I've said elsewhere, the fact that you are allowed to
return an NSArray at all is very surprising; I would have expected that if
you wanted to return a list of something you'd have to make a list-type
AEDesc (NSAppleScriptDescriptor), which does indeed work. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Replacing the view in NSTabView
  • Next by Date: Screenshots using Cocoa
  • Previous by thread: Re: cocoa scripting: selection
  • Next by thread: Using Bindings with a Slow-Setting Model
  • Index(es):
    • Date
    • Thread