Re: Where's the NSWindowController in a default document-based app
Re: Where's the NSWindowController in a default document-based app
- Subject: Re: Where's the NSWindowController in a default document-based app
- From: Izidor Jerebic <email@hidden>
- Date: Sat, 19 Jun 2004 18:54:14 +0200
On 18 Jun 2004, at 16:59, Glen Low wrote:
Hi All,
However what I don't quite understand is this:
1. When I make a new document-based app in Xcode, by default the nib
gets set like this:
File's Owner == NSDocument
File's Owner window outlet == window
window's delegate == File Owner
So where does the (default?) NSWindowController come into play?
In simple default single-window-document app, the NSDocument plays the
role of window controller, so there is no NSWindowController.
2. Assuming I make my NSWindowController subclass and wire it into the
system, does the NSWindowController then pass responder chain messages
back up to the NSDocument (or subclass) or do I have to handle all the
messages at the NSWindowController level e.g. save?
No need to change anything. Messages such as "Save" will be handled by
appropriate object (NSDocument) just fine...
izidor
_______________________________________________
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.