• 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: NSTokenField - token menu problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTokenField - token menu problem


  • Subject: Re: NSTokenField - token menu problem
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 23 May 2006 07:21:35 -0600


On May 22, 2006, at 4:13 PM, b UND d wrote:

- the (string) value of the token it was called from? (this token is not necessarily selected)

When you create the menu, set the token object as the represented object of each menu item. Then you can call -representedObject on the sender in the action to get the value. If your menu is in a nib, then you should copy the menu once for each object in the token field.


- and the NSTokenField of this token?

Using the above, query the backing store of the token field.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ 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: 
 >NSTokenField - token menu problem (From: b UND d <email@hidden>)

  • Prev by Date: Re: Creating custom controls to use in Interface Builder
  • Next by Date: Keyboard Events and WebView
  • Previous by thread: NSTokenField - token menu problem
  • Next by thread: view hierarchy inspector (for debugging)?
  • Index(es):
    • Date
    • Thread