On 10/01/2010, at 12:28 PM, Mr. Gecko wrote:

> I thought it was [[[id alloc] init] autorelease];


You thought wrong:

new
Allocates a new instance of the receiving class, sends it an init message, and 
returns the initialized object.

+ (id)new

Return Value
A new instance of the receiver.

Discussion
This method is a combination of alloc and init. Like alloc, it initializes the 
isa instance variable of the new object so it points to the class data 
structure. It then invokes the init method to complete the initialization 
process.

--Graham


_______________________________________________

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