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 || [EMAIL PROTECTED]
"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: pgpc5lcD2PyeV.pgp
Description: PGP signature

_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to