On Nov 23, 2010, at 5:41 PM, Rob Ross wrote:

> otherwise you are not responsible and

More or less (there are some exceptions).

> the object will be auto-released."

Sometimes.

    [NSString stringWithString: @"Foobar"];
    [NSNumber numberWithInt: 7];

Typically returns an object that is not auto-released, nor something you need 
to worry about releasing.

Note that [NSNumber numberWithInt: 42]; *does* release an auto-released object 
(and you still don't need to worry about releasing).

b.bum
_______________________________________________

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