Re: Creating new instances of a window?
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.