Solving Memory Leaks in an NSTableView
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.