Re: NSTableView, NSArrayController, NSManagedObjectContext
Re: NSTableView, NSArrayController, NSManagedObjectContext
- Subject: Re: NSTableView, NSArrayController, NSManagedObjectContext
- From: "Ture Pålsson" <email@hidden>
- Date: Tue, 1 Jan 2008 20:22:01 +0100
On Jan 1, 2008 7:49 PM, mmalc crawford <email@hidden> wrote:
>
> On Jan 1, 2008, at 10:34 AM, Ture Pålsson wrote:
>
> > Doing so means that the controller tracks inserts into and deletions
> > from its managed object
> > context for its entity."
> >
> The key word there is "its". You're inserting into another context.
Ah. Thanks for pointing that out.
> > Now, if I need to nudge the NSControllers to make them update
> > themselves, that means that the
> > model objects need to know about the controllers.
> >
> I'm not sure how that follows? The model objects don't need to know
> about the controllers -- controllers know about other controllers.
> Managed objects themselves don't need to know...
Ok, let me rephrase that a bit. :-) I'm still a beginner with Cocoa,
but so far I have always managed to keep my actual Objective-C code
(as opposed to NIB files) completely free from references to NSViews
and NSControllers. My ObjC code exposes stuff using KVC, and the
objects in the NIBs watch this stuff and do their magic. Now I
suddenly need do call methods in an NSController, meaning that I need
to have a reference (probably in the form of an IBOutlet) to this
controller somewhere. This is what put me off a bit.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
References: | |
| >NSTableView, NSArrayController, NSManagedObjectContext (From: "Ture Pålsson" <email@hidden>) |
| >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: mmalc crawford <email@hidden>) |
| >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "Ture Pålsson" <email@hidden>) |
| >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "I. Savant" <email@hidden>) |
| >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "Ture Pålsson" <email@hidden>) |
| >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "I. Savant" <email@hidden>) |
| >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "Ture Pålsson" <email@hidden>) |
| >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: mmalc crawford <email@hidden>) |