• 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: How to convert NSData → Property List Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to convert NSData → Property List Object (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: How to convert NSData → Property List Object
  • Next by Date: Re: How to debug crash in NSOperation?
  • Previous by thread: How to convert NSData → Property List Object
  • Next by thread: Can't access by data via KVC during KVO
  • Index(es):
    • Date
    • Thread