Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 17, 2012, 02:41 AM   #1
guydor
macrumors member
 
Join Date: Mar 2009
How to represent app objects such as cloths?

Hello,

I would like to know what is the best way to represent objects such as cloths.
Let's say in the app you can create your own character, assign mouth, eyes, nose, cloths etc.

How can I represent this objects in storage?
XML file with the required properties and when need, parse the XML file?

Thanks!
guydor is offline   0 Reply With Quote
Old Dec 17, 2012, 10:25 AM   #2
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Quote:
Originally Posted by guydor View Post
How can I represent this objects in storage?
XML file with the required properties and when need, parse the XML file?
In storage, within your app? If so, an XML file is probably a bit too cumbersome. You might want to look into using property-lists (which are, in essence, XML files too, but with a helpful API) or CoreData instead, and then probably backing that up with some model classes. I recommend you read the "Core App Objects" section of the iOS App Programming Guide as a start.
__________________
dejo is offline   1 Reply With Quote
Old Dec 19, 2012, 01:34 AM   #3
guydor
Thread Starter
macrumors member
 
Join Date: Mar 2009
Great Thanks!

Quote:
Originally Posted by dejo View Post
In storage, within your app? If so, an XML file is probably a bit too cumbersome. You might want to look into using property-lists (which are, in essence, XML files too, but with a helpful API) or CoreData instead, and then probably backing that up with some model classes. I recommend you read the "Core App Objects" section of the iOS App Programming Guide as a start.
guydor is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
OpenGL ES: Vertex Buffer Objects and Vertex Array Objects Blakeasd iPhone/iPad Programming 2 Jul 12, 2013 11:24 PM
What date does the following integer represent ? XPcentric Mac Programming 1 Feb 9, 2013 12:06 PM
Screen cleaning cloths marty1990 iPad 15 Jul 7, 2012 05:18 PM

Forum Jump

All times are GMT -5. The time now is 05:15 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC