• 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
Solving Memory Leaks in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Solving Memory Leaks in an NSTableView


  • Subject: Solving Memory Leaks in an NSTableView
  • From: Rosyna <email@hidden>
  • Date: Tue, 31 Dec 2002 04:16:28 -0700

I've got an NSTableView (and NSOutlineView) that leak incredible amounts of memory when I scroll them up and down. I am setting a custom font using -[NSCell setFont:] in -outlineView:willDisplayCell:forTableColumn:item:. When OmniObjectMeter does show me the source file and line that has the leak, it's always:

font=[NSFont fontWithName:(NSString*)name size:[NSFont smallSystemFontSize]];

I'm getting the font name using:

err=ATSFontGetName(fontRef, kATSOptionFlagsDefault,&name);

and, yes, I am releasing name after I use fontWithName:size:

Does NSFont leak? Or is there something else I should be looking at?
--


Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People
---

Please include any previous correspondence in replies, it helps me remember what we were talking about. Thanks.
_______________________________________________
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.
  • Prev by Date: Re: CF Portability
  • Next by Date: Re: CF Portability
  • Previous by thread: Re: keep scrollbar knob at bottom?
  • Next by thread: IOKit and DVD access
  • Index(es):
    • Date
    • Thread