Re: How to return a list from a script command
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