Re: Core Data with Multiple Windows -- Example?
Re: Core Data with Multiple Windows -- Example?
- Subject: Re: Core Data with Multiple Windows -- Example?
- From: mmalc crawford <email@hidden>
- Date: Sat, 22 Sep 2007 22:24:28 -0700
On Sep 22, 2007, at 7:18 PM, Mike Rossetti wrote:
Is there an example Core Data application anywhere that demonstrates
how to have more than one document window?
Core Recipes...
In my little project management application I'm building I'd like to
have separate windows for lists of projects, people, and clients.
I'm having just a bit of trouble making the leap from from the
default window loaded up with windowNibName and
windowControllerDidLoadNib to makeWindowControllers.
... the principle is the same for the document architecture. All you
need is a means to get to the managed object context. In
NS(Persistent)Document-based applications, you can always get back to
the document instance, and so from there to the managed object context.
This gets a little trickier if you're intending to have a central
shared repository (say, for one of your entities), but again the
principle remains the same that you simply need a path back to the
context (whether through the application's delegate or through a
shared instance of some other controller).
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