Discussion in 'Mac Programming' started by shilpa, Jun 5, 2008.

  1. shilpa macrumors member

    May 29, 2008
    Hi all,
    I have array of NSMutableArray type,which contains user defined menu and item type object.Item type is having refrence to menu object. After linking menu and item object i am archiving the array which contains all these objects to a file.
    so when i unarchive array object from a file all the refrences to the objects will be retained or no?
  2. mysticwhiskey macrumors newbie

    Mar 31, 2008
    I don't know, give it a go and let us all know if it does. :)

    Seriously though, I'm not entirely certain how to answer your question, as without some specifics on the class of the object you're storing in the NSMutableArray it's going to be a bit hard. Can you post your code for the object you're going to be archiving?

    In general, if you intend to archive an object its class has got to implement the NSCoding protocol. So if it's an user-defined object you're archiving, you're going to have to do some work to make sure you're archiving and unarchiving in the proper way to achieve what you want to do.

Share This Page