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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to