views:

396

answers:

1

In my Iphone application i have .plist file in which i am putting all the Input data. I will further use this data in the code: directly from .plist file.

The problem is that when i am going to open the .plist file in a windows machine, it is not showing its original content. It is just showing the Binary characters or junk characters.

Can any body help me out for how to open the .plist file in the Windows machine, so i can do my data entry in the .plist file in a windows machine also.

Any solution would be appreciated.

+2  A: 

More likely than not, the plist is stored in a binary format for speed and size purposes (XML is bloated and slow to parse).

You'll need to explicitly save your data in a readable format manually or use NSPropertyListSerialization to serialize the property list into XML.

http://developer.apple.com/iphone/library/documentation/cocoa/Reference/Foundation/Classes/NSPropertyListSerialization%5FClass/Reference/Reference.html#//apple%5Fref/occ/clm/NSPropertyListSerialization/dataFromPropertyList%3Aformat%3AerrorDescription:

bbum