Re: How to convert NSData → Property List Object
Re: How to convert NSData → Property List Object
- Subject: Re: How to convert NSData → Property List Object
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 27 Mar 2017 16:54:21 +0700
> On 27 Mar 2017, at 15:49, Felix Franz <email@hidden> wrote:
>
> On 27 Mar 2017, at 10:42, Gerriet M. Denkmann <email@hidden> wrote:
>>
>> propertyListFromData:mutabilityOption:format:errorDescription: (which converts an NSData into some property list object) is deprecated.
>>
>> The documentation says: This method is deprecated. Use dataWithPropertyList:format:options:error: instead.
>>
>> But this seems to be the exact opposite: converting a property list object into NSData.
>>
>> So: what to use to convert NSData into property list object?
>
>
> + propertyListWithData:options:format:error: in NSPropertyListSerialization ,
Thanks a lot! Exactly what I needed.
> looks like a documentation error (I used 10.11-documentation, maybe this is already fixed).
I use Xcode Version 8.2.1 (8C1002) with macOS 12.3 and it is not yet fixed.
Kind regards,
Gerriet.
_______________________________________________
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