Re: cocoa scripting: selection
Re: cocoa scripting: selection
- Subject: Re: cocoa scripting: selection
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 22 Sep 2005 20:13:16 -0400
on 2005-09-22 6:22 PM, Ken Victor at email@hidden wrote:
> i'm attempting to support the current selection of a document in my
> app. i've added a selection property to my document class as follows
> (to my sdef):
>
> <property name="selection" code="csel" type="specifier" list="yes"
> access="r" description="The current selection.">
> <cocoa key="selection"/>
> </property>
What happens if you define it like this, instead?
<property name="selection" code="csel" access="r" description="The current
selection.">
<cocoa key="selection"/>
<type type="specifier" list="yes"/>
</property>
The sdef man page suggests that the list attribute can only be used in a
separate type element, not as an attribute in a property element.
--
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