Am Do,21.08.2008 um 19:24 schrieb j o a r:


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


Yup, this was the reason for me to write:
"But, of course, sometimes a subclass is simply the right thing."

Cheers,

Amin Negm-Awad
[EMAIL PROTECTED]




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to