How can work on .plist?

Discussion in 'Mac Programming' started by newformac, May 25, 2011.

  1. macrumors regular

    Joined:
    May 24, 2011
    #1
    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.
     
  2. macrumors regular

    Joined:
    Apr 15, 2009
    Location:
    Central England
    #2
    Use 'plutil' on the command line: there is a man page
     
  3. macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #3
  4. macrumors 68040

    Joined:
    Feb 2, 2008
    #4
    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.
     
  5. thread starter macrumors regular

    Joined:
    May 24, 2011
    #5
    thanks.
     

Share This Page