On Aug 2, 2009, at 22:26, Quincey Morris wrote:

        return [ [ [[self class] alloc] init ] autorelease ] ;

('self' refers to the class object because this is a class method)

Doh, if that's true, then:

        return [ [ [self alloc] init ] autorelease ] ;

should be good enough. (IIRC, [self class] == self when self is a class, but I always confuse myself with the class versions of methods, sorry.)


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to