Re: Do I need to relase @"string" ??
Re: Do I need to relase @"string" ??
- Subject: Re: Do I need to relase @"string" ??
- From: Dave DeLong <email@hidden>
- Date: Mon, 02 Mar 2009 14:21:33 -0700
My understanding was that he was referring to the setter in his
AppDelegate class. Since the only thing (apparently) getting passed
into the setter was an NSConstantString, it would seem that he
wouldn't need to worry about releasing that property. (Assuming the
setter was retaining it)
Dave
On Mar 2, 2009, at 2:18 PM, Kyle Sluder wrote:
On Mon, Mar 2, 2009 at 3:58 PM, James Cicenia <email@hidden>
wrote:
DO I HAVE TO WORRY ABOUT RELEASING currentMiles somewhere?
YOU MIGHT WANT TO WORRY about releasing your Shift key. ;-)
Just follow the memory management guides. You didn't use +alloc,
+new, or -copy to make the object, so you don't own it. Therefore you
don't have to worry about releasing it.
--Kyle Sluder
_______________________________________________
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