I would like to store a ABRecordRef in a 'Client' entity in core data.
I have read in apples documentation that ABRecordRef is a primitive C data type. As far as I am aware, you can only insert objects in core data. With this in mind, what is the best way to store it in core data?
I thought about converting it into a NSNumber for storage, but dont know how to convert it back to ABRecordRef for use.
I also thought I could just put it in a NSArray/NSSet/NSDictionary on its own just acting as a wrapper but didnt know if this was silly/inefficient/would even work.
Thoughts appreciated.
Many thanks