• 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
Re: Core Data Relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSComboBox Bindings
      • From: Jerry Krinock <email@hidden>
References: 
 >Core Data Relationships (From: Walker Argendeli <email@hidden>)

  • Prev by Date: Re: Observing Managed Object Changes. Was: Strange ... behavior
  • Next by Date: Re: makeKeyAndOrderFront Crashing
  • Previous by thread: Core Data Relationships
  • Next by thread: Re: NSComboBox Bindings
  • Index(es):
    • Date
    • Thread