How to get the selected popupmenu item with core data
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