• 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: Zombie object being messaged - why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zombie object being messaged - why?


  • Subject: Re: Zombie object being messaged - why?
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 25 Jan 2013 23:00:27 -0800

On Jan 25, 2013, at 22:39 , Martin Hewitson <email@hidden> wrote:

> This was held for moderation for being too large (for some reason), so I've trimmed it and resent it.

Yes, this happens sometimes when you paste something with formatting into an email as unformatted text. I don't think my post (that you're replying to here) ever got to the list, even though I tried to fix it and resend. Anyway, you've repeated the essentials.

> OK, in my -tearDown I've inserted
>
>  [self.mainWindow setNextResponder:self.controlsTabBarController.nextResponder];

This isn't perhaps entirely safe. If anything has inserted another responder between the window and your view controller, you're going to mess up the responder chain.

You should really walk the chain starting at the window, looking for the last thing before your view controller, and adjust *that* (which will generally be the window itself).

>> Anyway I would suggest you investigate both #1 (by further examining your code for memory management errors, and winnowing the full Instruments history of the object) and #2 (to understand which presumably-unretained reference is being used for the zombie messaging).
>>
> Looking forward to your further thoughts on this,

I think your problem is solved. :)

_______________________________________________

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

References: 
 >Zombie object being messaged - why? (From: Martin Hewitson <email@hidden>)
 >Re: Zombie object being messaged - why? (From: Martin Hewitson <email@hidden>)

  • Prev by Date: Re: Zombie object being messaged - why?
  • Next by Date: more about NSAttributedString and truncation in iOS 6
  • Previous by thread: Re: Zombie object being messaged - why?
  • Next by thread: Getting file type from Save dlog
  • Index(es):
    • Date
    • Thread