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 07-31-2010, 09:12 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 2
Default Updating App data through XML or text files

I have a conceptual problem to solve and it has to do with the iPhone platform.

Here it is:

I am planning to develop an application which can be called a game or similar to a quiz application.

What I want to do is to define individual quizzes/scenarios in a simple text or XML file and as such "publish" new scenarios by providing text or XML files the user would download and "import" into the application.

Once the text file is imported, the content can be converted to Managed Objects and stored in a persistent store.

My problem is to decide whether to use text or XML, and how to let users import these files, given that there is really no apparent file system.

For parsing the files, I know there is an XML parser (NSXMLParser), but I did not see a simple text parser.

So, in summary:

1) Should I use text or XML, thinking about the capabilities in the iPhone SDK?
2) How can I provide the user a mechanism to import new files/scenarios and make them part of the application content

Thanks,
======
Dr. Levent Mollamustafaoglu
valisubik is offline   Reply With Quote
Old 07-31-2010, 10:32 PM   #2 (permalink)
Use [code] tags please
 
Join Date: Jun 2009
Location: Jacksonville, FL
Posts: 350
Default

1) XML is Text? Do you mean flat-file, comma delimited, or something else? I'd say use JSON.

2) Do you plan to make them pay for new content?

Yes - In App Purchase then.
No - maybe like an RSS feed of what is available that you could parse and let them choose one.

After that it is about the same, you would download the JSON turn that into an object and store that in a DB or file in the apps documents directory.
timle8n1 is offline   Reply With Quote
Old 08-01-2010, 06:16 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 2
Default

[quote=timle8n1;228814]1) XML is Text? Do you mean flat-file, comma delimited, or something else? I'd say use JSON.

I meant that I was considering either using direct XML or just flat text. JSON might be a good idea.

Thanks for the help.
valisubik is offline   Reply With Quote
Reply

Bookmarks

Tags
file management, parsing, text, xml

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: 882
16 members and 866 guests
Abb4ertW, Brix, cacao, Desert Diva, glennrichard113, ios dev, johnny40409, Krzyloren, MarkC, marovada, mizzytheboy, Ocguy, onzevil12, pinky, qkstrk, Snail
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,300
Threads: 89,032
Posts: 379,811
Top Poster: BrianSlick (7,086)
Welcome to our newest member, Krzyloren
Powered by vBadvanced CMPS v3.1.0

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