Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data and multiple NIBs: how to share the managedObjectContext?



In my MainMenu.nib I have an NSArrayController instance (in "Entity"
mode => managed by Core Data) called "Items" that allows me to display
some of its content in a table view (also in MainMenu.nib) by bindings
the table columns to this array controller...

I then have another view in a separate NIB called Details.nib that I
would like to use to also display some of the "Items" data. In
particular, I have a couple of textfields whose content should be
updated as soon as I select another row in the table view located in
MainMenu.nib.
Is it possible to do that?

(Ideally, I think I would need -- in Details.nib -- a sort of alias to
the "Items" array controller so that I could bind to it the textfields
values using 'selection' as Controller Key. Problem is, I don't know
how to obtain this "alias" 'cause I don't know how to setup its
bindngs to get the right managedObjectContext)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.