Re: Core Data Relationships
Re: Core Data Relationships
- Subject: Re: Core Data Relationships
- From: Walker Argendeli <email@hidden>
- Date: Wed, 25 Feb 2009 20:08:09 -0500
With an NSPopUpButton, you can bind content to Kind.arrangedObjects,
content values to Kind.arrangedObjects.title, and selected object to
Item.kind. I want the functionality of an NSComboBox, however, which
only has content and content values. There's no selected object.
What could I bind to to get this working?
Thanks,
- Walker Argendeli
On Feb 24, 2009, at 7:52 PM, Walker Argendeli wrote:
I apologize beforehand for the beginner-level of this question.
I'm getting started with core data, and I've gone through several
tutorials.
Let's say I have 2 entities: an Item, and a Kind. Each Item has 1
Kind, and each Kind has multiple Items. The Item might have an
attribute, Title, and a relationship to Kind, and Kind might have an
attribute, Title, and a To-Many relationship to Item (inverse).
It seems that in all the examples, a NSPopUpButton is used, with
Content, Content Values, and Selected Object being bindings.
What if I wanted to have say, an NSTextCell where you could enter a
Kind. I haven't decided whether you would be forced to enter a kind
that is already in the Kinds array, or could just type anything.
Anyways, what bindings would I want to use to accomplish this.
Thanks,
- Walker Argendeli
_______________________________________________
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