LiZunYuan / networkpx

Automatically exported from code.google.com/p/networkpx
0 stars 0 forks source link

Use serialization instead of archiving in clipboard.m #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To load & save data from existing files currently uses an NSKeyedArchiver.
But I'm afraid if I changes the Clipboard class, NSKeyedArchiver will fail.
Therefore, it should use class-independent serialization instead.

Original issue reported on code.google.com by kennytm@gmail.com on 25 Jan 2009 at 4:12

GoogleCodeExporter commented 8 years ago

Original comment by kennytm@gmail.com on 26 Jan 2009 at 12:14

GoogleCodeExporter commented 8 years ago
Turns out only class name & superclass is enough to identify which class is 
stored.
As long as I keep using the same name the archive is safe.

Original comment by kennytm@gmail.com on 26 Jan 2009 at 3:51