PDA

View Full Version : Encoding/decoding Quartz objects (specifically CGPathRef)?




jmcfadden
Aug 24, 2008, 06:05 PM
I am implementing NSCoding in my classes in order to allow for archiving and unarchiving of game state. For most Quartz objects (i.e. CGColor) I am simply converting the objects to their NS counterpart (i.e. UIColor) before encoding.

However, this is not possible for CGPathRef, and I am unsure how to extract its contents into an encodable and decodable format. Please help!