• 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: What's so special about NSString literals? (RE: memory management)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's so special about NSString literals? (RE: memory management)


  • Subject: Re: What's so special about NSString literals? (RE: memory management)
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 17 May 2006 10:56:20 -0600


On May 17, 2006, at 10:48 AM, Eric wrote:

So they are never deallocated throughout the program's lifetime?

Correct; they are members of the class NSConstantString (which is a concrete subclass of NSString) and their retain count is always UINT_MAX, so you can send a -release message to one but it won't do anything.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >What's so special about NSString literals? (RE: memory management) (From: Eric <email@hidden>)
 >Re: What's so special about NSString literals? (RE: memory management) (From: Nick Zitzmann <email@hidden>)
 >Re: What's so special about NSString literals? (RE: memory management) (From: Eric <email@hidden>)

  • Prev by Date: resetCursorRects being called too often?
  • Next by Date: Re: A word of caution...
  • Previous by thread: Re: What's so special about NSString literals? (RE: memory management)
  • Next by thread: Re: What's so special about NSString literals? (RE: memory management)
  • Index(es):
    • Date
    • Thread