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...):
I wish to understand:
- What does apple use to get this compressed format of the CGPoints list?
- how can i open my data file in more readable way?