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

Re: monitoring retainCount


  • Subject: Re: monitoring retainCount
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 26 May 2004 15:40:02 +0200

> Von: Stefan Fisk <email@hidden>
> Datum: Wed, 26 May 2004 13:44:15 +0200
> An: email@hidden
> Betreff: monitoring retainCount
>
> is there any way to monitor retainCount for an object?
> i'm writing a file based NSMutableArray subclass, and i would like it
> if objectAtIndex: could return the same object throughout the object's
> lifetime, to preserve memory etc..
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.


Hi,
I hope this can help you ( it's from the the cocoa documentation):

You might find it necessary to determine what is the retain count for an
object.

From the gdb console in Xcode enter:

print (int)[theObject retainCount]

If you are using gdb from a Terminal, you can also examine the retain count
using the command line.

Gvtz
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: monitoring retainCount
      • From: Shawn Erickson <email@hidden>
References: 
 >monitoring retainCount (From: Stefan Fisk <email@hidden>)

  • Prev by Date: Re: Changing the desktop picture
  • Next by Date: Re: Array Key-value Paths
  • Previous by thread: monitoring retainCount
  • Next by thread: Re: monitoring retainCount
  • Index(es):
    • Date
    • Thread