• 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: [NSStringDrawingTextStorage textContainerForAttributedString:] leaking?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSStringDrawingTextStorage textContainerForAttributedString:] leaking?


  • Subject: Re: [NSStringDrawingTextStorage textContainerForAttributedString:] leaking?
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 19 Jul 2004 11:46:22 -0700

On Jul 19, 2004, at 11:34 AM, Matt Gough wrote:

ObjectAlloc doesn't track leaks per se. These objects are being cached, not leaked.


Don't suppose there is anyway to clear this cache/stop it happening? I found ObjectAlloc to be much better than MallocDebug in tracking down missing [someObj release] calls. These cached items and their associated sub-objects makes it harder to spot my own mistakes.

If you run with -NSUseStringDrawingCache NO you should be able to avoid these. The usual caveats apply--this option is meant for debugging purposes, and is not guaranteed from one release to another.

Douglas Davidson
_______________________________________________
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.


References: 
 >[NSStringDrawingTextStorage textContainerForAttributedString:] leaking? (From: Matt Gough <email@hidden>)
 >Re: [NSStringDrawingTextStorage textContainerForAttributedString:] leaking? (From: Douglas Davidson <email@hidden>)
 >Re: [NSStringDrawingTextStorage textContainerForAttributedString:] leaking? (From: Matt Gough <email@hidden>)

  • Prev by Date: Re: cocoa app from scratch
  • Next by Date: Re: Open Recent menu
  • Previous by thread: Re: [NSStringDrawingTextStorage textContainerForAttributedString:] leaking?
  • Next by thread: Obj-C header-file becoming C header-file, & NSImage problem
  • Index(es):
    • Date
    • Thread