• 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: NSUserDefault crash issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefault crash issue


  • Subject: Re: NSUserDefault crash issue
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 10 Jan 2014 14:14:55 +0000

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


References: 
 >NSUserDefault crash issue (From: Arjun SM <email@hidden>)

  • Prev by Date: NSUserDefault crash issue
  • Next by Date: Re: Validation of fields in a navigation stack
  • Previous by thread: NSUserDefault crash issue
  • Next by thread: NSMapTable with weak refs on 10.7
  • Index(es):
    • Date
    • Thread