• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating new instances of a window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating new instances of a window?


  • Subject: Re: Creating new instances of a window?
  • From: Andreas Mayer <email@hidden>
  • Date: Sun, 10 Nov 2002 18:43:58 +0100

Am Sonntag, 10.11.02 um 09:16 Uhr schrieb Victor Ng:

This isn't what I really want since the contents of the view aren't going to be saved as a file back to the filesystem. I want to later post the data back to the main class through the NSNotificationCenter.

I think it would be best to stick to NSDocument anyway. You can overwrite anything you don't need and it provides quite some features you'd have to do your own otherwise.

There is usually an AppController with an instance of FooController - so I can only ever have a single FooWindow instance.

This is easily solved by using an array of FooControllers.

What you get by creating a document-based app is

- a document controller (NSDocumentController) that holds a list of
- documents (NSDocument) that hold a list of
- window controllers (NSWindowController) which has one
- window (NSWindow) each

So in your case you have the option to create either multiple documents with one window controller each, or you could create only one document with multiple window controllers. Whatever works best for you.


bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Creating new instances of a window? (From: Victor Ng <email@hidden>)

  • Prev by Date: Re: "weak link" framework refs for 10.1 compatibility?
  • Next by Date: Re: Using a subclass in IB
  • Previous by thread: Creating new instances of a window?
  • Next by thread: Re: Creating new instances of a window?
  • Index(es):
    • Date
    • Thread