Re: NSTableView, NSArrayController, NSManagedObjectContext
Re: NSTableView, NSArrayController, NSManagedObjectContext
- Subject: Re: NSTableView, NSArrayController, NSManagedObjectContext
- From: mmalc crawford <email@hidden>
- Date: Tue, 1 Jan 2008 11:30:49 -0800
On Jan 1, 2008, at 11:22 AM, Ture Pålsson wrote:
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
Yes, that's perfectly reasonable.
Or if for some reason you really want to avoid that (and to reiterate,
there's no need to do so, it's standard Cocoa architecture), you could
create an NSArrayController subclass that registers for save
notifications from the other managed object context and updates itself
in response (depending on your application architecture, it may be
that you'll need an outlet from the array controller to, say, the
document object to get the other MOC).
mmalc
_______________________________________________
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>) |
| >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "Ture Pålsson" <email@hidden>) |