• 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: How to return a list from a script command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to return a list from a script command


  • Subject: Re: How to return a list from a script command
  • From: Bill Cheeseman <email@hidden>
  • Date: Sat, 03 Sep 2005 12:26:33 -0400

on 2005-09-03 11:37 AM, Pascal Pochet at email@hidden wrote:

> implemented as
>
> - (NSArray *)tableNames
> {
>         return [_database tables]    ;
> }
>
> and it works perfectly

That's a simple getter, and it works fine for me, too.

Where I'm having trouble is with a subclass of NSScriptCommand. Overriding
-[NSScriptCommand performDefaultImplementation] to return an array works,
but a script calling it only returns a list with the first item of the
array, omitting all the rest of them.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes


 _______________________________________________
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

References: 
 >Re: How to return a list from a script command (From: Pascal Pochet <email@hidden>)

  • Prev by Date: Re: Dictionary? Array? or other
  • Next by Date: Object exclusion
  • Previous by thread: Re: How to return a list from a script command
  • Next by thread: Object exclusion
  • Index(es):
    • Date
    • Thread