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: 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