• 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
Apple's NSPersistentDocument Tutorial and MOCs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apple's NSPersistentDocument Tutorial and MOCs


  • Subject: Apple's NSPersistentDocument Tutorial and MOCs
  • From: Brad Gibbs <email@hidden>
  • Date: Wed, 12 Nov 2008 15:38:24 -0800

Hi,

I've followed along through the NSPersistentDocument tutorial from Apple and made some adjustments for my own needs. I now have a sheet that drops down to allow the user to add a new product record. This is handled in its own MOC and the relevant key/value pairs are copied to the main MOC when the user clicks "Add" to dismiss the sheet.

This works fine for attributes, but I'd also like to create relationships between the new product and existing category and manufacturer objects in the main MOC using pop up buttons. I can populate the pop up buttons easily enough in IB using bindings, but I can't bind across from the main MOC where the categories and manufacturers arrays live into the special new product MOC created for the sheet.

I've mucked about a bit with NSPopUpButton's titleForSelectedItem and some other methods, but, it feels as though I'm fighting the frameworks. Can someone recommend an elegant solution for this?


Thanks.

Brad
_______________________________________________

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: Apple's NSPersistentDocument Tutorial and MOCs
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Validating a non-optional transient Core Data property - it can be erased?!
  • Next by Date: Re: Problem with nested tags in xml
  • Previous by thread: Re: Distributed Objects invocation dispatch not thread safe??
  • Next by thread: Re: Apple's NSPersistentDocument Tutorial and MOCs
  • Index(es):
    • Date
    • Thread