CFKeyedArchiverUID: Difference between revisions

From iPhone Development Wiki
(adding missing navbox)
m (Reordering)
 
Line 1: Line 1:
{{occlass|library=CoreFoundation.framework}}
 
[[CFKeyedArchiverUID]] is the "8th property list object" for supporting NSKeyedArchiver. It is essentially a 32-bit integer, but this specific type is used to denote a link in the object graph.
 
This type will appear as <tt>&lt;NSCFType 0xXXXXXXXX&gt;</tt> when NSLog-ing it, which is not useful. Apple's Property List Editor does not recognize this type, so if you edit a plist generated by NSKeyedArchiver, data will be lost.


<source lang="c">
<source lang="c">
Line 9: Line 12:
</source>
</source>


[[CFKeyedArchiverUID]] is the "8th property list object" for supporting NSKeyedArchiver. It is essentially a 32-bit integer, but this specific type is used to denote a link in the object graph.
== External links ==
 
This type will appear as <tt>&lt;NSCFType 0xXXXXXXXX&gt;</tt> when NSLog-ing it, which is not useful. Apple's Property List Editor does not recognize this type, so if you edit a plist generated by NSKeyedArchiver, data will be lost.


== References ==
* Source code of this type: http://opensource.apple.com/source/CF/CF-299.33/Parsing.subproj/CFBinaryPList.c
* Source code of this type: http://opensource.apple.com/source/CF/CF-299.33/Parsing.subproj/CFBinaryPList.c


{{occlass|library=CoreFoundation.framework|navbox=1}}
{{occlass|library=CoreFoundation.framework|navbox=1}}

Latest revision as of 05:29, 26 October 2014

CFKeyedArchiverUID is the "8th property list object" for supporting NSKeyedArchiver. It is essentially a 32-bit integer, but this specific type is used to denote a link in the object graph.

This type will appear as <NSCFType 0xXXXXXXXX> when NSLog-ing it, which is not useful. Apple's Property List Editor does not recognize this type, so if you edit a plist generated by NSKeyedArchiver, data will be lost.

typedef struct __CFKeyedArchiverUID* CFKeyedArchiverUIDRef;

CFTypeID              _CFKeyedArchiverUIDGetTypeID (void);
CFKeyedArchiverUIDRef _CFKeyedArchiverUIDCreate    (CFAllocatorRef allocator, uint32_t value);
uint32_t              _CFKeyedArchiverUIDGetValue  (CFKeyedArchiverUIDRef uid);

External links