re: Odd crash with a drawer (fix)
re: Odd crash with a drawer (fix)
- Subject: re: Odd crash with a drawer (fix)
- From: Josh Anon <email@hidden>
- Date: Fri, 14 Mar 2003 11:17:42 -0600
After a number of hours of tinkering, I finally found the problem.
Since this isn't document based, when the window closed, it handed a
notification off to the thing retaining it, telling it to remove it
from the preview controller dictionary. However, NSMutableDictionary's
removeObjectForKey: was calling release instead of autorelease (I
believe) which was causing the various deallocs to happen in the wrong
order. Retaining the controller, removing it from the dict, and then
autoreleasing it fixed the crash.
Hope that helps someone else!
Josh
--
//email@hidden ||
http://www.areax.net
"Your chances of getting hit by lightning go up if you stand under a
tree, shake your fist at the sky and say 'Storms suck!'" -- Johnny
Carson
_______________________________________________
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.