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

References: 
 >cocoa scripting: selection (From: Ken Victor <email@hidden>)

  • Prev by Date: Re: Sheets and NSUndomanager
  • Next by Date: Re: How to join NSScrollView and NSTableView programmatically
  • Previous by thread: cocoa scripting: selection
  • Next by thread: Re: cocoa scripting: selection
  • Index(es):
    • Date
    • Thread