Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shilpa

macrumors member
Original poster
May 29, 2008
33
0
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?
 
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?

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.