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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to