Re: Help with Basics
Re: Help with Basics
- Subject: Re: Help with Basics
- From: Bill Bumgarner <email@hidden>
- Date: Tue, 23 Nov 2010 19:47:45 -0800
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 (email@hidden)
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:
This email sent to email@hidden