• 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
re: Odd crash with a drawer (fix)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: anoncvs.opensource.apple.com CVS server dead?
  • Next by Date: Synchronize timer with internal clock
  • Previous by thread: Re: Documents Alias
  • Next by thread: Embedding perl ?
  • Index(es):
    • Date
    • Thread