Re: Questions-fest
Re: Questions-fest
- Subject: Re: Questions-fest
- From: Jack <email@hidden>
- Date: Thu, 30 Jun 2005 19:03:57 +0200
>> o Is it advised to use a different controller object for each window?
>
> Usually that makes the most sense. The controller ties into the
> specific controls on that particular window after all.
I like having a central controller that loads all the NIBs and then you can
instantiate other specific objects inside the NIB. This way you can ask the
controller for any object you might need in the NIB file, including other
objects in other NIBs. It keeps the code easy to handle, but like most
questions on this list it all depends on what you are building.
The responder chain is one of the more complicated mechanisms to understand,
but it also where Cocoa get it's power from. The flexibility of cascading
down the responder chain even including NSApp's delegate. Delegation is one
of Cocoa strengths as well.
Jack Frost
http://www.bruji.com/
_______________________________________________
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