• 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: NSString initWithUTF8String - crazy retainCount with empty string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString initWithUTF8String - crazy retainCount with empty string


  • Subject: Re: NSString initWithUTF8String - crazy retainCount with empty string
  • From: mmalc crawford <email@hidden>
  • Date: Sat, 24 Mar 2007 09:18:15 -0700


On Mar 24, 2007, at 8:55 AM, Simon Strandgaard wrote:

I am adding undo/redo to my program and want to make sure things
can be released correctly by NSUndoManager some point in the future.
So I assert on retainCount before passing the ownership to
NSUndoManager.

Why?

If retainCount isn't working, then I have no means to verify my
resources is being released correctly.

Have you adhered to your side of the memory management contract?

Can anyone confirm that retainCount go nuts?

<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html#//apple_ref/occ/intfm/NSObject/retainCount >

mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: NSString initWithUTF8String - crazy retainCount with empty string
      • From: "Simon Strandgaard" <email@hidden>
References: 
 >NSString initWithUTF8String - crazy retainCount with empty string (From: "Simon Strandgaard" <email@hidden>)
 >Re: NSString initWithUTF8String - crazy retainCount with empty string (From: mmalc crawford <email@hidden>)
 >Re: NSString initWithUTF8String - crazy retainCount with empty string (From: "Simon Strandgaard" <email@hidden>)

  • Prev by Date: Re: NSString initWithUTF8String - crazy retainCount with empty string
  • Next by Date: Re: NSString initWithUTF8String - crazy retainCount with empty string
  • Previous by thread: Re: NSString initWithUTF8String - crazy retainCount with empty string
  • Next by thread: Re: NSString initWithUTF8String - crazy retainCount with empty string
  • Index(es):
    • Date
    • Thread