Re: Cocoa class extension best practice
Re: Cocoa class extension best practice
- Subject: Re: Cocoa class extension best practice
- From: Steve Mills <email@hidden>
- Date: Wed, 16 Oct 2013 16:20:13 -0500
On Oct 16, 2013, at 12:56:00, Andy Lee <email@hidden> wrote:
> As for the creeping memory footprint, maybe try Heapshot Analysis to see what objects are being created during particular intervals?
Aha! Thanks, I didn't know about this very helpful debugging aid yet. I was getting about a meg worth of junk every time I brought up a multi-panel dialog that loads 26 nibs, with most of the objects rooted in a call to instantiateNibWithOwner. Looking that method up, I see it's been deprecated and replaced by instantiateWithOwner in 10.8. I tried that instead and now it's only growing by a few measly k every time. This is *much* better. But, we still need to support 10.7. So it looks like we'll just have to leak all this crap in 10.7 and run the newer method on 10.8 and up.
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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