Hi!
I have an array of Objects in cocoa application which is having
name,discriptions,type,image etc....as instance variables.
I want to store this array on disk and when i launch my application i
want to fetched this array and used it again
Can anyone tell me how can i do it .
I tried function writeToFile methods its not working.
Thanks
Gregory Weston - 26 Mar 2008 13:03 GMT
In article
<1aea269c-0f82-42ba-96f2-61ea5a46d64d@e10g2000prf.googlegroups.com>,
> Hi!
>
[quoted text clipped - 4 lines]
> Can anyone tell me how can i do it .
> I tried function writeToFile methods its not working.
Your best bet when dealing with arbitrary data types is to adopt the
NSCoding protocol and then use an archiver to turn your collection into
a simple NSData object.