Encoding/decoding Quartz objects (specifically CGPathRef)?

Discussion in 'iPhone/iPad Programming' started by jmcfadden, Aug 24, 2008.

  1. macrumors newbie

    Joined:
    Aug 24, 2008
    #1
    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