Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / March 2008



Tip: Looking for answers? Try searching our database.

Writing and Reading Array OF Object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
langamba.k@gmail.com - 26 Mar 2008 12:23 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.