Re: PDFKit guidance
Re: PDFKit guidance
- Subject: Re: PDFKit guidance
- From: Douglas Davidson <email@hidden>
- Date: Thu, 26 Jun 2008 12:02:33 -0700
On Jun 26, 2008, at 11:54 AM, Torsten Curdt wrote:
The subclassing of PDFDocument and PDFPage was quite straight
forward. (Although unexpected as usually everyone tells you "usually
you don't subclass in Cocoa land")
I think what we usually say is: don't make subclassing your first
resort. Try configuration, composition, delegation, or notification
before subclassing; but if those don't cover your particular
situation, as often happens, most Cocoa classes are designed with
subclassing in mind. Subclassing is more powerful and more dangerous
than those other mechanisms, and often more work, so it should be
reserved for those cases where it is necessary, but it should be
available to you when you need it.
Douglas Davidson
_______________________________________________
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