Re: NSPropertyListSerialization weirdness
Re: NSPropertyListSerialization weirdness
- Subject: Re: NSPropertyListSerialization weirdness
- From: Robert Martin <email@hidden>
- Date: Sun, 26 Jul 2015 17:51:44 -0400
Thanks Jens, I’ll test for NSNulls instead. I know the dictionary is valid because after I read it with dictionaryWithContentsOfFile:, I log it, and it ‘looks' fine…
> On Jul 26, 2015, at 5:44 PM, Jens Alfke <email@hidden> wrote:
>
>
>> On Jul 26, 2015, at 2:28 PM, Robert Martin <email@hidden> wrote:
>>
>> I get a null, and an error (200) that the plist contains null.
>>
>> Before I make that call, I put in a check for nulls, but none are found:
>
> You’re checking for nil pointers. (Which are illegal in Foundation collections, so you’ll never find any.)
> It sounds like the error is complaining about instances of NSNull.
>
> If that’s not the problem, then another possibility is that updateDictionary itself is nil — your snippet won’t log that as a problem because the entire enumeration will be silently skipped.
>
> —Jens
_______________________________________________
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