Re: Non collapsable NSSplitView
Re: Non collapsable NSSplitView
- Subject: Re: Non collapsable NSSplitView
- From: "I. Savant" <email@hidden>
- Date: Fri, 25 May 2007 10:21:18 -0400
On 5/25/07, Micha Fuhrmann <email@hidden> wrote:
Mmm, delegates, new world to me
<snip>
Shouldn't be.
Delegation is a very handy (and often crucial) design practice
allowing many things to be done without a) subclassing unnecessarily
and/or b) tying the implementation of, say, a view directly to, say, a
model. Of course I'm generalizing ...
Delegation allows things like views to ask their controllers (rather
than the model they represent) certain things like "should I display
this differently", allowing the controller to say, "this is a special
type of model, so yes, display this one in this way".
Take an hour or so to walk through all Cocoa objects with AppKiDo
and check out each one's delegate methods. You'd be surprised how much
stuff you can easily customize with delegation alone ...
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden