Re: Exception on launch when clicking on an NSUserNotification
Re: Exception on launch when clicking on an NSUserNotification
- Subject: Re: Exception on launch when clicking on an NSUserNotification
- From: Jens Alfke <email@hidden>
- Date: Thu, 26 Feb 2015 18:37:09 -0800
> On Feb 26, 2015, at 6:17 PM, Alex Kac <email@hidden> wrote:
>
> However I'm having a problem on launching the app by tapping on the notification. My app gets an applicationWillFinishLaunching, and then gets an exception before it hits applicationDidFinishLaunching.
>
> https://www.dropbox.com/s/nmf6qr97su43plh/Screenshot 2015-02-25 21.38.37.png?dl=0 <https://www.dropbox.com/s/nmf6qr97su43plh/Screenshot 2015-02-25 21.38.37.png?dl=0>
That screenshot doesn’t show what the exception is — that’s likely the important clue. If you continue from that breakpoint the exception should get logged to the debugger console.
From the stack it looks like it’s a problem decoding an archived object that’s a property of the notification. My guess is that you put a custom object in your notification userInfo and for some reason it fails to unarchive.
—Jens
_______________________________________________
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