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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to