Encoding/decoding Quartz objects (specifically CGPathRef)?

Discussion in 'iOS Programming' started by jmcfadden, Aug 24, 2008.

  1. jmcfadden macrumors newbie

    Aug 24, 2008
    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!

Share This Page