• 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: 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


  • Prev by Date: Need Help With NSScrollView & possible NSClipView
  • Next by Date: zip compression/decompression SDK
  • Previous by thread: Re: cocoa scripting: selection
  • Next by thread: Re: cocoa scripting: selection
  • Index(es):
    • Date
    • Thread