Mailing Lists: Apple Mailing Lists

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

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



Sorry! I feel dumb!
I was completely forgetting the key value coding fundamentals and the
fact that I can actually put dot-separated object properties in the
Model Key Path field....

Of course, by forgetting this basic principle, I couldn't pretend to
know how to communicate amongst nibs using bindings...

Now everything becomes much easier and of course the problem has
nothing to do with CoreData and "sharing the managedObjectContext
between nibs" as I was mentioning in the subject of the original
message.

I removed the useless "Items" instance in Details.nib and simply bound
the textfield to "File's Owner (MainController)" with a ModelKeyPath =
"feedsArrController.selection.title"
(feedsArrController being an outlet of MainController connected to the
"Items" array controller in MenuMenu.nib)
 _______________________________________________
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

References: 
 >Core Data and multiple NIBs: how to share the managedObjectContext? (From: Zeno Crivelli <email@hidden>)
 >Re: Core Data and multiple NIBs: how to share the managedObjectContext? (From: zeno <email@hidden>)
 >Re: Core Data and multiple NIBs: how to share the managedObjectContext? (From: mmalcolm crawford <email@hidden>)
 >Re: Core Data and multiple NIBs: how to share the managedObjectContext? (From: zeno <email@hidden>)
 >Re: Core Data and multiple NIBs: how to share the managedObjectContext? (From: mmalcolm crawford <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.