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 17:06:22 +1100
The documentation doesn't actually say it's archived - it talks about the "serialized" size. That could imply that it's passed around as a plist rather than a keyed archive. But a plist has a fair bit of overhead as well, as it's an XML file.
--Graham
> On 27 Feb 2015, at 5:04 pm, Graham Cox <email@hidden> wrote:
>
>
>> On 27 Feb 2015, at 4:27 pm, Alex Kac <email@hidden> wrote:
>>
>> What’s not shown above is the identifier - which is a 64 character string, and the sound name which is a 10 character string. I’m pretty sure that’s not more than 1k
>
>
> Right, but it's the resulting archive that has to come in under 1K (a ridiculously small limit!). Archives include all sorts of stuff on top of the actual string content - complete class names for all classes involved, all the keys and a fairly complex structure. You might want to just archive your user data with keyed archiver and check the resulting length of the NSData.
>
> --Graham
>
>
_______________________________________________
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