• 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: Why shouldn't I release?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Why shouldn't I release?


  • Subject: RE: Why shouldn't I release?
  • From: Ric L. <email@hidden>
  • Date: Fri, 30 Nov 2007 22:06:13 -0500
  • Importance: Normal



> CC: email@hidden
> From: email@hidden
> To: email@hidden
> Subject: Re: Why shouldn't I release?
> Date: Fri, 30 Nov 2007 18:58:59 -0800
>
>
> On Nov 30, 2007, at 6:54 PM, Ric L. wrote:
>
> > By my reckoning, stringWithFormat should create a string with a
> > retain count of 1.
>
>
> Why do you say that? Before you answer, refer to the memory management
> policies here:
>
> <http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html

Well, after I wrote the message, I added a line:

    long retainCount = [outputString retainCount];

after the call to stringWithFormat and saw that it had a retain count of 1 - this would seem to settle the issue that I am correct on this point at least.

However, thanks for the pointer to the site, I will take a close look at it.



_________________________________________________________________
Your smile counts. The more smiles you share, the more we donate.  Join in.
www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline_______________________________________________

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: Why shouldn't I release?
      • From: "I. Savant" <email@hidden>
    • Re: Why shouldn't I release?
      • From: Frank Weinstock <email@hidden>
    • Re: Why shouldn't I release?
      • From: Hank Heijink <email@hidden>
References: 
 >Why shouldn't I release? (From: Ric L. <email@hidden>)
 >Re: Why shouldn't I release? (From: j o a r <email@hidden>)

  • Prev by Date: Re: Why shouldn't I release?
  • Next by Date: Re: Why shouldn't I release?
  • Previous by thread: Re: Why shouldn't I release?
  • Next by thread: Re: Why shouldn't I release?
  • Index(es):
    • Date
    • Thread