Re: cocoa scripting: selection
Re: cocoa scripting: selection
- Subject: Re: cocoa scripting: selection
- From: Ken Victor <email@hidden>
- Date: Fri, 23 Sep 2005 10:29:13 -0700
for the archives. i received 2 replies to my problem implementing a
selection property for my documents. the two combined provided a
solution.
1) Just so you know, the selection property should have a code of
'sele'. It is the selection class that has a code of 'csel'. (private
off list reply)
2) 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.
(thanx bill cheeseman)
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, but i can live with this.
thanx,
ken
_______________________________________________
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