• 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: NSMutableString question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableString question


  • Subject: Re: NSMutableString question
  • From: Jason Coco <email@hidden>
  • Date: Tue, 16 Sep 2008 22:33:32 -0400


On Sep 16, 2008, at 21:58 , Bill Bumgarner wrote:
On Sep 16, 2008, at 6:29 PM, Jason Coco wrote:
Is it actually retained by the pool, or does the pool just delay the final release?

It doesn't really matter how it's implemented... either way, you shouldn't release it unless you own it (i.e., you've retained it yourself or gotten it from one of the "ownership" methods such as copy, alloc, etc.).

Actually, it does matter.

In particular, -autorelease is just "-release when the containing pool is -drain'ed".

Oh, I meant from the perspective of convenience methods, not the case where you're actively retaining an object.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >NSMutableString question (From: John Zorko <email@hidden>)
 >Re: NSMutableString question (From: Dave DeLong <email@hidden>)
 >Re: NSMutableString question (From: Graham Cox <email@hidden>)
 >Re: NSMutableString question (From: Dave DeLong <email@hidden>)
 >Re: NSMutableString question (From: Graham Cox <email@hidden>)
 >Re: NSMutableString question (From: Dave DeLong <email@hidden>)
 >Re: NSMutableString question (From: Jason Coco <email@hidden>)
 >Re: NSMutableString question (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Outlet from Different Implementation?
  • Next by Date: Re: NSMutableString question
  • Previous by thread: Re: NSMutableString question
  • Next by thread: Re: NSMutableString question
  • Index(es):
    • Date
    • Thread