Re: NSFileWrapper and plist
Re: NSFileWrapper and plist
- Subject: Re: NSFileWrapper and plist
- From: Seth Willits <email@hidden>
- Date: Fri, 13 Sep 2013 19:11:08 -0700
On Sep 13, 2013, at 6:46 PM, Trygve Inda wrote:
> I have an NSDictionary that contains objects that support NSCopying. I can
> use writeToFile:atomically: and it saves a nice plist file that I can read
> cleanly.
>
> If I use NSFileWrapper however (for my document-based app), I need to use a
> keyed archiver to conver the NSDictionary to NSData. After NSFileWrapper
> saves it, the plist is no longer really legible as a plist because it has
> lots of extra objects list $objects and $top.
>
> Is there anyway to have NSFileWrapper save my dictionary in a user-friendly
> format so that I can see it as a normal dictionary in the plist utility?
NSPropertyListSerialization
https://developer.apple.com/library/mac/documentation/cocoa/reference/foundation/Classes/NSPropertyListSerialization_Class/Reference/Reference.html
--
Seth Willits
_______________________________________________
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