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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-15-2009, 07:20 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2008
Location: Munich, Germany
Posts: 108
Exclamation NSMutableArray to NSData and back...

Hi all,

when exiting my app I want to convert my nsmutablearray to nsdata and then store it. When the application loads I want to convert the nsdata back into a nsmutablearray to be able to use it.
There is a reason why I dont just store the nsmutablearray into a plist. That actually would be easy.
The nsmutablearray consists of strings, arrays and dictionarys.

What would be the best way to

1) convert back and forth and

2) how and in what format (in a file?, if yes, what file?, in NSUserDefaults?) should i store the nsdata?

Thanks for taking your time!
freshking is offline   Reply With Quote
Old 08-16-2009, 07:18 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2008
Location: Munich, Germany
Posts: 108
Default

No one got an idea? I really need to get this working!
freshking is offline   Reply With Quote
Reply

Bookmarks

Tags
convert, format, nsdata, nsmutablearray, nsuserdefaults

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 265
20 members and 245 guests
@sandris, AdamL, ADY, Dani77, diyora, FAED, F_Bryant, GHuebner, HDshot, headkaze, mer10, Oral B, prchn4christ, Rudy, smithdale87, Thompson22, timle8n1, Touchmint, twerner, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,749
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:57 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0