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?



On 8/12/05, mmalcolm crawford <email@hidden> wrote:
> How have you set up the bindings?

As I wrote in the previous emails:

The textfield in Details.nib,
- Bind to: "Items"
- ControllerKey: "selection"
- ModelKeyPath: "title"

The Items array controller in Details.nib (managedObjectContext parameter),
- Bind to: "File's Owner (MainController)"
- ModelKeyPath: "managedObjectContext"

and MainController implements:
- (NSManagedObjectContext *)managedObjectContext
{
       return [[NSApp delegate] managedObjectContext];
}


> This isn't a Core Data issue, it's a general "How do I communicate
> changes amongst nibs (using bindings)" question.

I agree
btw, if only you could come here in switzerland and give to our
university the same great course you're giving at Stanford.... (I'm
afraid students here we'll never see a Cocoa course...that's too bad)
;-)
 _______________________________________________
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>)



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.