• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Doc bug fix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: An "interesting" bug involving NSDistributedNotifications
  • Next by Date: [ANN] MarshmallowLibrarian Public Beta 3
  • Previous by thread: An "interesting" bug involving NSDistributedNotifications
  • Next by thread: [ANN] MarshmallowLibrarian Public Beta 3
  • Index(es):
    • Date
    • Thread