• 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: Exception on launch when clicking on an NSUserNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Exception on launch when clicking on an NSUserNotification
      • From: Alex Kac <email@hidden>
References: 
 >Exception on launch when clicking on an NSUserNotification (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: How to prevent app activation on NSUserNotification action
  • Next by Date: Re: Exception on launch when clicking on an NSUserNotification
  • Previous by thread: Exception on launch when clicking on an NSUserNotification
  • Next by thread: Re: Exception on launch when clicking on an NSUserNotification
  • Index(es):
    • Date
    • Thread