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: Alex Kac <email@hidden>
- Date: Fri, 27 Feb 2015 11:26:34 -0700
*** -[NSKeyedUnarchiver decodeObjectForKey:]: data to unarchive contains class (NSArray) which has not been allowed
However - the only array I’m setting is the additionalActions - a Yosemite property (this is on Yosemite of course).
// An array of NSUserNotificationAction objects that describe the different actions that can be taken on a notification in addition to the default action described by actionButtonTitle
@property (copy) NSArray *additionalActions NS_AVAILABLE(10_10, NA);
And yup that is it. If I comment out the additionalActions, it works. I guess time to file a bug… # 19986044
> On Feb 27, 2015, at 9:35 AM, Kyle Sluder <email@hidden> wrote:
>
> On Thu, Feb 26, 2015, at 08:49 PM, Alex Kac wrote:
>> It would be a fantastic clue! Except … its not printed in the console, or
>> in the xcode console, or anywhere. So I have no idea. My guess is that
>> the OS is swallowing the exception for launch purposes, which does me no
>> good.
>
> You're trapped at objc_exception_throw. You can select frame 0 and print
> the first argument (`po $rdi` on x86-64).
>
> --Kyle Sluder
>
> _______________________________________________
>
> 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
Alex Kac - President and Founder
Web Information Solutions, Inc.
"It is useless for sheep to pass a resolution in favor of vegetarianism while wolves remain of a different opinion."
-- William Randolph Inge
_______________________________________________
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