plist

Reading a plist file using MonoTouch

What's the best way to load and process a "two-level nested" plist file using MonoTouch? I have a plist file with data (structurally) similar to the following: - USA --- New York --- Chicago - UK --- London --- Edinburgh - France --- Paris --- Lyon I have Obj C samples that use NSDictionary and NSArray, but I'd like to get it into a s...

Something is wrong with my plist file? But what is it?

Could someone please help me figure out what is wrong with my program, AND HOW O FIX IT!? Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'SECRET-Info.plist'. Please help! ...

Showing Random Words From Plist Dictionary - Memory Leak?

Hi. I am new to iphone development. I am "old School" - I was tought to use Procedures etc. when programming. Everything is object oriented these days but my style is still as its always been. Please bear that in mind. My project is tiny and really just a proof of concept. The program below works on a timer - every 30 seconds it will r...

Why is image data in plist dictionary?

I inherited an OpenGL iPhone app code which has some large PNG files (say, sunshine.png, 10,000 px by 80 px) and a corresponding PLIST file for each png (say, ImageData/sunshine.plist). The trouble is, when I replace the PNG files, the app doesn't pick them up, apparently because it doesn't really read the PNG, just the corresponding ...

Reorder a tableview and save it to a plist

Hi I have a plist with some fixed data, for example orange apple banana I want to populate a tableview with this data, and the users reorder the table view, and then save the plist with the new order. Which is the best way to do this? Any tutorial that show how to do? A lot of thanks ...

iPhone Objects from NSDictionary PList

Hello, in my app I have a section where I load from a saved plist which has 2 nested dictionaries like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; <plist version="1.0"> <dict> <key>1</key> <dict> <key>color</key> ...

How to load data from a plist for OpenGL Rendering (iPhone)?

I have an interesting problem. I have 4 arrays stored in a .plist file, they are called "vertices", "normals", "texCoords" and "polygons" (this file is attached, along with GLViewController.m). l want to load these arrays into arrays of type Vertex3D, Vector3D, GLfloat and GLubyte respectively, and then render them using OpenGL. However,...

How to read file contents

Hi. I have a text view on which i m droping a plist file. It's displaying the path of the file which i dropped there. Now i want to read the contents of that file without opening the file. How to do that? Can anybody help me? ...

Plist not saving from dictionary (to Documents)

I've been trying to save a plist of a NSDictionary to my app's Documents folder. I haven't tried this on the device yet but I'd like it to work on the simulator for testing purposes. The [self createDictionaryFromChoreList] method just creates a NSDictionary from some data in another class of mine. I've pretty much copied/pasted this cod...

iPhone plist key-to-struct of values

I am new to plists. They seem very powerful for static data but I'm not sure how to accomplish the following. I have a table of data (a spreadsheet currently) where the first column is a unique id (perfect for the key) and I want that key to map to the a structure w/ the rest of the column's data. I'm looking at my plist in XCode and I...

Numbers Spreadsheet to PLIST (or XML)

Is there any program that will generate a compliant plist XML structure from a spreadsheet where the first column is the key (for the plist dictionary) and the value is a dictionary made up of the subsequent columns. ...

What's the best way to store and retrieve multi-dimensional NSMutableArrays?

I'm storing a bunch of data in a .plist file (in the application documents folder), and it's structured like this: Dictionary { "description" = "String Value", "sections" = Array ( Array ( Number, ... Number ), Array ( Number, ... Num...

How to force application Settings bundle get updated?

Application Settings.bundle contains a version number, which is automatically generated during build. From build log I can see that new value is written there, also when looking inside the file itself in MacOS X Finder I see correct updated value. Settings in iPhone simulator or in real iPhone shows me the old value. Removing applicatio...

Create a plist iPhone SDK

Hi, I am trying to set up a method that creates a .plist file at a given file path, however my current code only works for modifying a plist. Is there an easy way to create the plist file? This is simply a first draft of the method, the final version will take a variable for the course_title. Thanks - (void)writeToPlist{ NSString *...

OS X Data Storage in PLIST Example or Tutorial?

I have looked for several hours for a good tutorial on how to store data for my command line program that I am writing in Objective-C. It seems like my options are NSUserDefaults, Plists, sqlite, or XML. Now, I think at most I'd have 50kb of data to store, retrieve, and modify, so it seems like from what I read Plists would work just f...

iPhone - Can we parse .plist(xml) file using NSXMLParser?

iPhone - Can we parse .plist(xml) file using NSXMLParser? Thanks in advance. Ruchir ...

add child key to plist programmatically (iphone sdk)

hi all does anybody know how to add a child key to the root key programmatically in a plist? sean ...

NSScanner parsing html into a plist

Question: Is this an appropriate way to parse HTML into a plist? I need to pull information from the following html. The HTML is in this style consistently. The first block of HTML is a section header and the second part is the sections content. The sections can have any number of contents. This is the HTML. <td class="boxcontainer"> ...

iPhone application Info.plist language property

Which property should I change on Info.plist in order to configure the list of languages shown in itunes store under my submitted application? EDIT: My application will be in Greek and I want to see Greek as the only language under Languages in the App Store. How do I do that? ...

How to create a plist (NSKeyedArchive) ?

Hey, At the moment I am trying to get comfortable with NSKeyedArchiving. Until now I don't get it. I've got an example plist which is archived. How can I make such an archived plist file? I've some values but no idea on how to create that. The docs didn't help me either... Hopefully you can help me. Thanks a lot. ...