• 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: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell


  • Subject: Re: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell
  • From: mmalc Crawford <email@hidden>
  • Date: Mon, 25 Jun 2007 21:32:20 -0700


On Jun 25, 2007, at 8:22 PM, Bill Coleman wrote:

OK, I have a CoreData model with a handful of entities. The first entity is Entry, which has a relationship to a Selection. I'm displaying the Entries in an NSTable bound to an NSArrayController (Entries). I've set up the relationships according to the documentation here:http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Tasks/onerelation.html
[...]
So, how do I get both -- I want my Entry value to show up in the table, and all the Selection values to show up in the Popup -- ? Why does the Insert Null Placeholder modify the display of the table?


You've almost certainly set up a binding incorrectly.

Why not just create an "automatic" UI using Interface Builder (drag the Entry entity into a window)? It should set up the Selection popup and associated array controller for you...

(See also <http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/index.html > and <http://developer.apple.com/samplecode/DepartmentAndEmployees/>.)

mmalc

_______________________________________________

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: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell [Solved?]
      • From: Bill Coleman <email@hidden>
References: 
 >Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell (From: Bill Coleman <email@hidden>)

  • Prev by Date: Re: Using NSImage in a tool
  • Next by Date: Re: AppleScript not sending my Cocoa app proper floats on Intel
  • Previous by thread: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell
  • Next by thread: Re: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell [Solved?]
  • Index(es):
    • Date
    • Thread