• 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
How to get the selected popupmenu item with core data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get the selected popupmenu item with core data


  • Subject: How to get the selected popupmenu item with core data
  • From: Michael Süssner <email@hidden>
  • Date: Thu, 28 May 2009 20:16:49 +0200

I have a table of objects (core data) which are used to fill the content of a NSPopupMenu. The user should be able to choose an abject. Afterwards the user should click on a button and the selected object should be added to another table.

Now I have created a NSArrayController object and bound the content of NSPopupButton to the controllerobject.arrangedobject, the content value to an attribute of the object entity.

Now I have the problem how I can read the index of the currently selected object of the popupmenu.

I thought I could use the selected object binding but I do not know how.

Any idea how to do that?
Michael
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to get the selected popupmenu item with core data
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSString initWithFormat and stringWith
  • Next by Date: Re: Triggering change notifications when modifying custom object ivars in core data app
  • Previous by thread: Re: Binding to two values
  • Next by thread: Re: How to get the selected popupmenu item with core data
  • Index(es):
    • Date
    • Thread