I need to encode and decode property of type NSUInteger
with NSCoder
.
Is it safe to use NSCoder::encodeInteger:forKey:
and NSCoder::decodeIntegerForKey:
methods for that?
The other way around that comes to my mind is to wrap the unsigned integer into NSNumber
first. But that means some more code and I do not like it much.