bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Documentation Bug?


From: Patrick McFarland
Subject: Documentation Bug?
Date: Thu, 16 Jun 2005 22:09:02 -0400
User-agent: KMail/1.8

In 
http://gnustep.org/resources/documentation/Developer/Base/ProgrammingManual/manual_4.html#SEC51
 
it says, for +new, to use...

+ new
{
  Point *point = [[self alloc] init];
    // note "self" refers to the "Point" _class_ object!
  return AUTORELEASE(point);
}

... but NSObject.m says...

+ (id) new
{
  return [[self alloc] init];
}

... which one is right?

-- 
Patrick "Diablo-D3" McFarland || pmcfarland@downeast.net
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989

Attachment: pgp2XIsDXEi9N.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]