Is it safe to archive Dictionary with String as a key?

231 views Asked by At

According to Apple docs, hash value of string may not be stable across different invocations of app:

The hash value is not guaranteed to be stable across different invocations of the same program. Do not persist the hash value across program runs. Apple docs

Is it safe to archive (by NSArchive) dictionary of the following type [String: AnyObject]? If so, how Dictionary prevents from instability? Does it archive dictionary as array of tuples, like [(key, value)]?

0

There are 0 answers