NSDictionary from NSData

Discussion in 'iPhone/iPad Programming' started by davbeck, Oct 29, 2009.

  1. macrumors regular

    Joined:
    May 16, 2008
    Location:
    Reno, NV
    #1
    I have a PHP file that is outputting a binary plist file. I am downloading it using NSURLConnection, which returns NSData. I would then like to unarchive it into a dictionary.

    I don't see any way to convert the two other than writing the data to file, which seems stupid.
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Try NSPropertyListSerialization
     
  3. thread starter macrumors regular

    Joined:
    May 16, 2008
    Location:
    Reno, NV
    #3
    Thanks, I stumbled on that a few minutes ago.
     

Share This Page