Re: 1 controller, 1 nib, 2 windows?
Re: 1 controller, 1 nib, 2 windows?
- Subject: Re: 1 controller, 1 nib, 2 windows?
- From: Scott Ribe <email@hidden>
- Date: Fri, 12 Nov 2004 10:21:13 -0700
> One window per nib isn't exactly "the Cocoa way", as far as I'm
> concerned. NSWindowController gives you some cool stuff, but if you're
> talking about displaying sheets, you probably don't need any of it.
> Frankly, I wouldn't even use NSWindowController for what you describe.
Oh, right, OK. The first several things I did in Cocoa were a natural fit
for file's owner being a subclass of NSWindowController. So I got into the
habit of thinking that way, and forgot that file's owner can be any class.
I see now that it would be easy for file's owner to be some class that
instantiated a window controller on the desired window--or anything else I
wanted it to do. (I understand the suggestion for using the app
controller--but I don't have one because I haven't converted to Cocoa
completely yet, I am adding new Cocoa-based windows into a Carbon app.)
Thanks for the discussion; it has helped me get a better grip on things.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden