• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Do I need to relase @"string" ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Do I need to relase @"string" ??
      • From: Bryan Henry <email@hidden>
References: 
 >Do I need to relase @"string" ?? (From: James Cicenia <email@hidden>)
 >Re: Do I need to relase @"string" ?? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Custom file types and extensions
  • Next by Date: Re: Custom file types and extensions
  • Previous by thread: Re: Do I need to relase @"string" ??
  • Next by thread: Re: Do I need to relase @"string" ??
  • Index(es):
    • Date
    • Thread