by Gregory Weston <uce@[EMAIL PROTECTED]
>
Mar 26, 2008 at 08:03 AM
In article
<1aea269c-0f82-42ba-96f2-61ea5a46d64d@[EMAIL PROTECTED]
>,
langamba.k@[EMAIL PROTECTED]
wrote:
> 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.
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.