Core Data with Multiple Windows -- Example?

  • Is there an example Core Data application anywhere that demonstrates
    how to have more than one document window?

    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.

    Thanks,
    Mike
  • 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
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today