Re: Keyed archiver
Re: Keyed archiver
- Subject: Re: Keyed archiver
- From: Joakim Danielson <email@hidden>
- Date: Sun, 21 Nov 2004 15:09:37 +0100
I can archive and restore a string with the value "$noll" but I cannot do the same with "$null".
I tried this with a simple ToDo application I have written and I got the same result when I put "$null" in a text field. After examining the saved file I realized that it contained some value/variables that started with a $ sign, such as $version, $objects_ etc that was inserted by the coder when saving the document.
I searched the documentation and found this explanation:
"
You should avoid using “$” as a prefix for your keys. The keyed archiver and unarchiver use keys prefixed with “$” for internal values. Although they test for and mangle user-defined keys that have a “$” prefix, this overhead slows down archiving performance."
It seems that the second sentence don't apply to $null.
Joakim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden