Apple's NSPersistentDocument Tutorial and MOCs
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