| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I think that NSUnarchiver will return nil if it doesn't like the data format that it is given.
Eg. Some time ago Chris Kane wrote: (regarding the old pre 10.2 format)
NSUnarchiver will return nil there if the archive version/magic "number" is unknown to it (it knows the ones it can deal with); one example would be, the file isn't really an NSArchiver archive.
This magic is one of 0x3 or 0x4 followed by 0xb followed by "typedstream" or "streamtyped" at the beginning of the file.
Your problem seems more like a (de)coding error in your (un)archiving methods. eg.
Failure to retain an decoded object.
Deallocating something being archived while the archiver is running, so that archiving pass 2 sees a different object at an address to that which it saw during pass 1.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.