Talk About Network

Google





Mac > Mac Programmer Help > Re: Writing and...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 3677 of 3889
Post > Topic >>

Re: Writing and Reading Array OF Object

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.
 




 2 Posts in Topic:
Writing and Reading Array OF Object
langamba.k@[EMAIL PROTECT  2008-03-26 04:23:23 
Re: Writing and Reading Array OF Object
Gregory Weston <uce@[E  2008-03-26 08:03:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 18:56:13 PST 2009.