PDA

View Full Version : How can work on .plist?




newformac
May 25, 2011, 06:54 AM
hi all,

please tell me how can i work on .plist?

how can create ,write,modify and get the existing value from .plist file?

please help me for this.

thanks in advance.



fivenotrump
May 25, 2011, 06:58 AM
hi all,

please tell me how can i work on .plist?

how can create ,write,modify and get the existing value from .plist file?

please help me for this.

thanks in advance.

Use 'plutil' on the command line: there is a man page

jiminaus
May 25, 2011, 07:21 AM
Read the Property List Programming Guide (http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/PropertyLists/) if you want to do as part of an Objective-C program.

subsonix
May 25, 2011, 07:39 AM
There is also:

CFPropertyListCreateData (with kCFPropertyListXMLFormat_v1_0)
CFPropertyListCreateFromXMLData

In CoreFoundation if you work with C or C++. These functions take as argument, and produces a CFDictionary respectively, which can also be used as NSDictionary from Obj-C.

newformac
Jun 10, 2011, 12:13 AM
thanks.