Re: Window Styles
Re: Window Styles
- Subject: Re: Window Styles
- From: j o a r <email@hidden>
- Date: Sat, 15 May 2004 17:03:40 +0200
On 2004-05-15, at 12.20, Rob Abernathy wrote:
>
Why should you usually avoid subclassing? Do you mean in Cocoa or
>
AppKit? If so, why?
Developers coming to Cocoa from other OOP environments (Java, C++) are
often accustomed to rely heavily on subclassing. Cocoa is designed in a
different way, where categories (a language feature of ObjC) and
delegates (a very effective design pattern) often makes it unnecessary
to subclass most specialized classes in Cocoa.
I'm not saying that you should never subclass, but you should look for
alternatives before you do. I't often easier and more flexible not to.
j o a r
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.