Re: another n00b question -- how to find a memory leak
Re: another n00b question -- how to find a memory leak
- Subject: Re: another n00b question -- how to find a memory leak
- From: John Zorko <email@hidden>
- Date: Wed, 22 Oct 2008 13:46:44 -0700
Bill,
Alas, I found it 10 minutes after I posted the message *sigh* ... I
forgot the autorelease pool in my override of -
observeValueForKeyPath:ofObject:change:contet: ... the console message
is gone now :-)
Many thanks anyway, though!
Do this in your callback:
{
NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
... do your callback thing here ...
[p drain];
return ... whatever you need to return ...;
Regards,
John
Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com
_______________________________________________
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