Re: NSUserDefault crash issue
Re: NSUserDefault crash issue
On 10 Jan 2014, at 13:47, Arjun SM <email@hidden> wrote:
> Hi all,
>
> I am having a crash issue when i am trying to set the dictionary for
> persistent domain.
>
> *Scenario*
>
> When user logs in to my application, my app receives a few settings from a
> server which is updated to NSMutableDictionary.
> After updating the dictionary , I set the the values for the domain using
> below code,
Have you validated that the NSMutableDictionary instance only contains valid plist objects?
It looks to me from the crash report that it doesn’t.
The valid types: https://developer.apple.com/library/mac/documentation/cocoa/conceptual/PropertyLists/AboutPropertyLists/AboutPropertyLists.html
Try using NSPropertyListSerialization +propertyList:isValidForFormat:
Jonathan
_______________________________________________
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