Re: Using NSPopUpButtonCell with a CoreData attribute.
Re: Using NSPopUpButtonCell with a CoreData attribute.
- Subject: Re: Using NSPopUpButtonCell with a CoreData attribute.
- From: Martin van-Eerde <email@hidden>
- Date: Sun, 18 Feb 2007 20:56:11 +0000
After many reams of code I have solved this one...
Providing you are happy to just store the selected index in the
CoreData entity attribute the only thing that needs binding in IB is
"selectedIndex".
On 17 Feb 2007, at 11:56, Martin van-Eerde wrote:
Second posting - I have tried nearly every single combination and
still cannot get this to work, considering how easy it is to use a
popup to display and to-one relationship just getting popup to
supply/edit a plain attribute seems, well not easy or documented ;-(
I have a NSTableView with its columns bound to a array controller
backed by CoreData.
I would like to change one of the free form text cells to a
lookup. I have added NSPopUpCellButton and linked that to a menu.
If I do not bind the column the menu options for the table are
displayed, but the column value is not displayed one a menu choice
has been selected, and does not get persisted in the entity.
If I bind the column the menu will not popup! I don't mind what
the entity attribute is, but would prefer it to be the index of the
selected menu item. How do I get the menu selection to update the
entity attribute and the column to display the selected menu text?
Thanks Martin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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