Re: NSWindowController, owner, "primary window"...
Re: NSWindowController, owner, "primary window"...
- Subject: Re: NSWindowController, owner, "primary window"...
- From: j o a r <email@hidden>
- Date: Thu, 21 Aug 2008 10:24:57 -0700
On Aug 21, 2008, at 10:12 AM, Negm-Awad Amin wrote:
Probably because the GoF prefers combination over (?) subclassing.
Subclassing always discloses parts of the implementation of a class.
("white-boxing") So generally it is a good idea, to look for
alternatives for subclassing, esp. delegates.
You are right in that Cocoa programmers often look to other design
patterns before choosing to subclass one of the framework provided
classes. That said, NSWindowController is one of the classes in Cocoa
designed and intended to be subclassed, so that's not a consideration
in this particular case.
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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
References: | |
| >NSWindowController, owner, "primary window"... (From: Gerd Knops <email@hidden>) |
| >Re: NSWindowController, owner, "primary window"... (From: Ken Thomases <email@hidden>) |
| >Re: NSWindowController, owner, "primary window"... (From: Gerd Knops <email@hidden>) |
| >Re: NSWindowController, owner, "primary window"... (From: Graham Cox <email@hidden>) |
| >Re: NSWindowController, owner, "primary window"... (From: Negm-Awad Amin <email@hidden>) |