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

  • SEARCH
  • Home
  • 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 6138205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:49:19+00:00 2026-05-23T17:49:19+00:00

Few months ago i made an app based on apple GLPaint. It works great.

  • 0

Few months ago i made an app based on apple GLPaint.
It works great.

I have recorded sets of points that draw simple drawings on the screen. and saved them as array of points (converted to NSValue).

i am trying to improve my app now and i looked again at apple example.
the data in their data file looks like that (i have changed it a little bit):

<data>
AAC8QgAAsEMAAMJCAICoQwAAwkIBBAKRDAADCQgCAnUMAAMJCAACYQwAAwEIAgJRDAADA
QgCAkkMAAMBCAACRQwAAwEIAgJBDAADAQgCAkEM=
</data>
<data>
AACoQgAAnEMAALpCAACdQwAAxEIAAJ1DAAGGGgAAnUMAANpCAICdQwAA4kIAgJ5DAADs
QgCAn0MAAOxCAICfQw==
</data>

So every group is one drawing and This is way compact then my plists of CGPoints.

I have succeeded to convert the array of CGPoints to data and read the file back.

BUT
When i try to open each shape data file i get this (on textMate, textEdit, xCode…):

one of the CGPoints groups data file
I wish to understand:

  1. What does apple use to get this compressed format of the CGPoints list?
  2. how can i open my data file in more readable way?
  • 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. Editorial Team
    Editorial Team
    2026-05-23T17:49:20+00:00Added an answer on May 23, 2026 at 5:49 pm

    The data in Apple’s Recording.data file in that sample application is the XML Plist representation of an NSArray containing a bunch of NSData objects, each of which contains the bytes representing an array of CGPoint structs. Do note that this depends on the binary representation of a CGFloat and the specific layout of the CGPoint struct, which could differ between compilers or versions of the same compiler.

    Your screenshot appears to be the output of NSKeyedArchiver, which is safer but has much more overhead.

    If you wanted a compact but still portable representation, you could manually serialize the individual CGFloats into a byte array in a portable format (this previous question may help you there) and then wrap the byte arrays in NSData, put the NSDatas into an NSArray, and use writeToFile:atomically: to output the mess to a plist like Apple does.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running an SSIS package that I made a few months ago, and ran
A few months ago, I have read about a PHP function that is called
A few months ago I got an shocking email from Apple, telling that they
I used a tool a few months ago that scanned a specified website and
I created an Android project a few months ago and now have to automate
A few months ago I read about a technique so that if there parameters
I made an iPhone game a few months ago, and am now trying to
I have a WordPress installation and a few months ago I decided to change
A few months ago there was a feature in the Rails API documentation that
I used 'package.skeleton()' to generate .Rd help files a few months ago. I have

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.