• 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: Graham Cox <email@hidden>
  • Date: Fri, 27 Feb 2015 15:38:20 +1100

OK, scratch that - it does seem as if there should be the user notification embedded in the did launch notification:

> NSApplication
>
> If an application is launched because a user selected a notification in the Notification Center, NSApplicationLaunchUserNotificationKey will be present in the userInfo dictionary of NSApplicationDidFinishLaunchingNotification. Its value is an NSUserNotification object.
> - (void)applicationDidFinishLaunching:(NSNotification *)notification {
>     NSUserNotification *launchNotification = [[notification userInfo]
>                                   objectForKey:NSApplicationLaunchUserNotificationKey];
>     if (launchNotification) {
>         // application was launched by a user selection from Notification Center
>     }
> }
> NSApplicationLaunchUserNotificationKey has replaced NSApplicationRemoteNotificationKey, which was introduced in Lion but is deprecated in Mountain Lion.
>


So that's something new I learned - sorry for the noise.

But the <1K limit presumably still applies...


--Graham



> On 27 Feb 2015, at 3:12 pm, Graham Cox <email@hidden> wrote:
>
> OK, I may be having a massive misunderstanding about how iOS works

_______________________________________________

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: 
 >Exception on launch when clicking on an NSUserNotification (From: Alex Kac <email@hidden>)
 >Re: Exception on launch when clicking on an NSUserNotification (From: Graham Cox <email@hidden>)

  • Prev by Date: RE: Exception on launch when clicking on an NSUserNotification
  • Next by Date: Re: Exception on launch when clicking on an NSUserNotification
  • Previous by thread: RE: Exception on launch when clicking on an NSUserNotification
  • Next by thread: Re: Exception on launch when clicking on an NSUserNotification
  • Index(es):
    • Date
    • Thread