• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Keyed archiver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Keyed archiver (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Keyed archiver (From: Jonathan Jackel <email@hidden>)
 >Re: Keyed archiver (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: cocoa java bridge: converting nsarray to java array
  • Next by Date: Password dialog
  • Previous by thread: Re: Keyed archiver
  • Next by thread: Re: Keyed archiver
  • Index(es):
    • Date
    • Thread