plist

How to change a NSMutableDictionary int value

I have a StateArray.plist set up with 50 dictionary entries each containing a string with the name of the state and a number 0. What I want to be able to do is change the 0 to a 1 through a segmented control and save the updated plist. The code I have is below and won't save the changed number. -(void) viewWillAppear: (BOOL) animated ...

Plist with array of dictionaries: How do I load Item strings into a Utility style app?

Dear Developers. I am trying to load plist data into UILabels in a utility template app that has two views. There is a flip animation that allows switching between the views. Here is the structure of the plist: Root...............................(Array) ........Item 0.....................(Dictionary) .................Question.........

Changing and saving NSMutableDictionary values

I have a StateArray.plist set up with 50 dictionary entries each containing a string with the name of the state and a number 0. What I want to be able to do is change the 0 to a 1 through a segmented control and save the updated plist and segmented control position. The code I have is below. Here is my .h file #import <UIKit/UIKit.h> #...

Can you build an array of items from folder contents?

Let's say I've got a folder in my project with bunch of png files in it (or mp3 files, or mov files etc). I would like to create an NSArray populated with the items within that folder... for instance an array of UIImages for the folder of images (or just an array of NSStrings of the image name). Is this possible? I know I could create ...

display next item in plist NSmutable Array using UIbutton

Dear Developers, I am developing an iphone app that has a single View containing A UILabel. The UILabel displays strings from within a plist that is structued as follows; Root................................................(Array) .............Item 0.................................(Dictionary) .........................Question.........

Object serialization in XML format using Obj-C / iPhone SDK

Hi folks, I have an iPhone App that uses a relatively small amount of data. I'd like to save the data in the XML format and be able to load this in memory to Objective-C objects. I'd like to use iPhone SDK facilities like NSPropertyListSerialization or writeToFile:atomically: classes and methods. The NSPropertyListSerialization documen...

Accessing data from an Array of dicionaries containing an array

Hi, I'm a bit stumped and I'm hoping someone can help me. I've got a plist which is an array of dictionaries. I'm trying to read it into a table. The plist looks like this: <array> <dict> <key>sectionTitle</key> <string>A</string> <key>rowData</key> <array> <dict> <key>T...

pulling data from a plist

I'm trying to pull some data from plist file and display it in a text field (from a UIButton click). the code below pulls the address of the plist and not the data. any help is greatly appreciated. thanks -(IBAction) buttonPress { NSString *path = [[NSBundle mainBundle] pathForResource:@"messages" ofType:@"plist"]; NSMutableArr...

randomizing the string pulled from a plist file

I'm looking to randomize the output from a plist file. I've read about arc4random(), but I'm not sure how to incorporate it into the code. thanks for any help. here's the code that's currently pulling 'objectAtIndex:0' -(IBAction) buttonPress { NSString *path = [[NSBundle mainBundle] pathForResource:@"messages" ofType:@"plist"]...

Ipad xcode plist problem

Hey guys I'm having a problem with my plist file. Maybe you will be able to figure out the solution. I made a project for ipad, everything is working well on the ipad simulator, absolutely no problem. Now I decided to test it on an ipad device. Therefore I modified the "Bundle Identifier" in the plist which was by default "com.yourcomp...

creating a plist using java

hi, Is there a easy way to create a plist using java just like serializing the dictionary in objective c ? ...

Are plists the best way to store multiple in-app preferences for my iOS app?

I'm diving into iOS development and am building a game that has multiple game types. When the user selects which game type they want to play, they are presented with a game configuration screen where they can adjust their options for how the game will play. Since there are two different game types, there will be two different configura...

Plist files not being read

Hey there, my app has a search bar that searches a plist file. I've created the plist file but I keep getting this error: [Session started at 2010-07-27 19:11:07 +0530.] 2010-07-27 19:11:12.550 InfoCarApp[2062:20b] *** -[NSCFDictionary allkeys]: unrecognized selector sent to instance 0x3d51440 2010-07-27 19:11:12.552 InfoCarApp[2062:20b...

How to populate UIPickerView with .plist file ?

I want to populate one.plist files from a number of .plist files as per the user selection . How to populate UIPickerView with a .plist file ? ...

Problem registering file type through UTIs

Hi, I'm using AquaticPrime for license generation in my app, and as the developer guide suggests I'm attempting to register a custom file extension, such that users can simply click on the license and my application will open it and can then verify the license. To do this, I've added an exported UTI declaration to my Info.plist as fo...

How do I create json file from plist file?

I want to create a json file from from exsited plist file. How do I create json file from plist file using programg language (Javascript or Java or Objectiv-c or Python or Ruby)? ...

how to traverse in the plist

How can I traverse in the plist to get the value number? My plist looks like this: Arrays Array Dictionary Number Number Array ... So in code, I've already started something: NSString *imagePlist = [[NSBundle mainBundle] pathForResource:@"Imageinfo" ofType:@"plist"]; NSArray *imageArray = [[NSArray allo...

Populating two grouped tableviews from the same PLIST

In my app, there is a portion that holds a static contacts directory. I would like the directory to appear indexed (alphabetically) and the detail view will need to be grouped also. (I am somewhat trying to replicate the look and feel of the Contacts app.) I have it working, just no index and a detail page that is just a view with a col...

pulling info from a plist

I'm able to pull information from a plist using: nameTextField.text = [recipe objectForKey:NAME_KEY]; ingredientsText.text = [ingredients objectForKey:NAME_KEY]; I also have images in the plist [the names of the images, not the image data] does anyone know how i would display an image in a similar manner? thanks in advance. ...

Ordering of pList Files

I am reading in a pList file that I created. It has a list of categories in it and it reads in each one and creates a button to represent that category. The names are: cHelp, cFun, cReading-Class I would prefer that the order in the plist file is kept. But instead I get cReading-Class first, cHelp second, and cFun last. In the fi...