• 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: 1 controller, 1 nib, 2 windows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: 1 controller, 1 nib, 2 windows? (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: Re: My bug or Apple's?
  • Next by Date: Re: Use of long long's in a Cocoa program?
  • Previous by thread: Re: 1 controller, 1 nib, 2 windows?
  • Next by thread: Re: 1 controller, 1 nib, 2 windows?
  • Index(es):
    • Date
    • Thread