Core Data and multiple NIBs: how to share the managedObjectContext?
Core Data and multiple NIBs: how to share the managedObjectContext?
- Subject: Core Data and multiple NIBs: how to share the managedObjectContext?
- From: Zeno Crivelli <email@hidden>
- Date: Thu, 11 Aug 2005 12:25:58 +0200
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:
This email sent to email@hidden