Doc bug fix
Doc bug fix
- Subject: Doc bug fix
- From: Ronald Hayden <email@hidden>
- Date: Thu, 15 Nov 2001 17:42:10 -0800
On Monday, November 12, 2001, at 05:13 PM, email@hidden wrote:
> Cocoa experts should take a look (and fill a bug report) about the doc
on copyWithZone
> for instance (exercise: where is this method documented?). In my
opinion, the line
> that starts with
> Product *copy = [[Product alloc]
> is just plain wrong; it should be
> Product *copy = [[[self class] alloc]
> ...and this makes a HUGE difference when subclassing (which is the
very difficult point here).
I did go ahead and file a bug report on this, and got this response:
Already fixed. The code sample was corrected for the next release (and
also moved to the Memory Management topic). There are also now sections
in this topic explaining how to implement NSCopying if your superclass
both implements and does not implement NSCopying.
-- Ron