• 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: Inconvenient exception impossible to get rid of?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconvenient exception impossible to get rid of?


  • Subject: Re: Inconvenient exception impossible to get rid of?
  • From: Uli Kusterer <email@hidden>
  • Date: Tue, 03 Mar 2015 01:42:05 +0100

On 03 Mar 2015, at 00:14, Graham Cox <email@hidden> wrote:
> I'm getting an exception thrown by the NSPopover code when a popover is going away. Due to the way popovers are handled, the exception is not one I'm able to catch, so the app is terminated. This is a very big punishment for what seems a trivial transgression that doesn't even matter at this time, nor one I have any apparent control over.
>
> Here's the upper part of the stack trace of the exception:

 Sounds like an actual bug, at least I don’t get this behaviour in my popvers. Are you sure your NSPopover is still valid at the point? What does calling malloc_size() on the pointer return? If it’s 0, it’s already been disposed.

 Are you using the same view controller for several popover pop-up events? I usually create a new one and let the NSPopover release it. I also usually release the NSPopover when I get an NSPopoverDidCloseNotification (or whatever it is, going from memory here). Any of these different from what you’re doing? It seems like you’re re-using both the popover and its view controller for different occasions. That sounds like it should be fine, but as I’m not doing it, it may be worth trying if somehow Apple isn’t expecting that.

Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://zathras.de


_______________________________________________

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


  • Follow-Ups:
    • Re: Inconvenient exception impossible to get rid of?
      • From: Graham Cox <email@hidden>
References: 
 >Inconvenient exception impossible to get rid of? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Application windows are expected to have a root view controller at the end of application launch
  • Next by Date: Re: Create a NSURL as a way to validate urls - not working
  • Previous by thread: Inconvenient exception impossible to get rid of?
  • Next by thread: Re: Inconvenient exception impossible to get rid of?
  • Index(es):
    • Date
    • Thread