Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-16-2010, 12:43 PM   #6 (permalink)
smasher
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
Default

You should add those methods to the TTLauncherItem class; you can use a category to do that. Then you will not call initWithTitle, except inside the initWithCoder method you wrote.

In your main method you will load the entire array by doing this:
Code:
myArray = [NSKeyedUnarchiver unarchiveObjectWithFile: filePath];
A different method: I did not know what TTLauncherItem was when you asked - I assumed it was a class that you wrote. If you don't want to go with the NSCoding / category method you could create a dictionary with just the data you need, and save an array of dictionaries with writeToFile.
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Online Users: 280
19 members and 261 guests
ADY, apatsufas, BdR, ckgni, Duncan C, F_Bryant, glenn_sayers, Guthook, ilmman, joeallenpro, ketaskin, michelle, Music Man, NSeven, Sunny46, VikMyr, vogueestylee, zbynda, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,708
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:08 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.