Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 169139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:34:38+00:00 2026-05-11T12:34:38+00:00

Hopefully that title is clear enough. Anyways, it seems: [NSKeyedArchiver archiveRootObject:rootObject toFile:path]; is restricted

  • 0

Hopefully that title is clear enough. Anyways, it seems:

[NSKeyedArchiver archiveRootObject:rootObject toFile:path]; 

is restricted to NSPropertyListBinaryFormat_v1_0.

I need the format to be human readable [so xml]. If you’re interested, this is part of project I’ll eventually put up on github with a blog post about ‘How to Unit Test GPS Applications’

🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:34:39+00:00Added an answer on May 11, 2026 at 12:34 pm

    You have to use NSPropertyListSerialization to convert it. Basically, assuming the object that you’re serializing is called myObject and the ultimate file is stored in myPath, you would serialize it to XML using something like the following code fragment:

    NSString *error = nil; NSData *mySerializedObject = [NSKeyedArchiver archivedDataWithRootObject:myObject]; NSData *xmlData = [NSPropertyListSerialization dataFromPropertyList:mySerializedObject                         format:NSPropertyListXMLFormat_v1_0                         errorDescription:&error]: if( xmlData ) {     [xmlData writeToFile:myPath atomically:YES]; } else {     NSLog(error);     [error release]; } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully the title is clear enough! I'm looking for a single query that replicates
Hopefully the title of my question was clear enough. Here's a really simple version
I need some sort of node-graph editor, that hopefully works on both Mac and
Hopefully that title makes sense... Let's say I have an employee table: ID |
Hopefully this will be clear enough. I have a 2d map made of tiles,
Hopefully the title has made it quite clear. I would like to see an
Long title but hopefully it explained most of what I need to say. Basically
Hopefully that title isn't too cryptic. What's happening is I have a jQuery AJAX
First off I'm not sure that's the proper title for this question but hopefully
Hopefully the title is clear. I have a chunk of memory obtained via mmap().

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.