plist

Editing a plist within Xcode

I would like to edit a plist from Xcode which I will use to fill the table view. The thing is I have an array of images, and the user can add one of these images to a favorites list. This needs to be written to the plist. So I need the index number of the image and the name they choose to save it with. How can I write to a plist? Th...

iphone - writeToFile not saving new entry into plist

My writeToFile is not saving my data to my .plist. - (IBAction)clickBtnDone:(id) sender { NSLog(@"Done"); if ([txtGroupName.text length] > 0) { [self dismissModalViewControllerAnimated:YES]; NSLog(@"Group Name: %@", txtGroupName.text); NSMutableArray *newDict = [[NSMutableArray alloc] init]; [self.groups setObject:newDict fo...

Serializing a plist

I have tried the various techniques described to serialize a plist I need in order to save the favorites of the user. Some people also say it is better to save that data into the "user defaults" file. Which is the better technique and how are they serialized. I have this code [plistArray writeToFile:filepath atomically: YES]; which...

False order when reading Dictionary from PList

Hi, I have a plist from which i am trying to access its animations in sequence (as defined in the PList) but when I store it in NSDictionary and then try to play animation one by one it is not playing them in sequence. e.g, int index = 0; [self playAnimation:[animTypes objectAtIndex:index++]]; [self playAnimation:[animTypes objectAt...

Objective-C: Any way to embed text formatting like < li>< /li> or < b>< /b> into a string in a plist?

I am a new objective-c/iPhone developer and am wondering if there is any way to embed formatting tags into a string in plist? I have a plist that is an array of dictionaries. Each dictionary contains a few string objects, some of which I would like to contain lists and paragraphs of information. Is there any way to embed tags like < ...

Storing to plist works on simulator but not on device.

I currently add data to a NSMutableArray and then read back from it to populate a UITableview. This works fine on the simulator, but when testing on the device it doesnt work. The app still reads from the plist, so if I manually add data to it the app displays it in the tableview. But Cannot read or write to it on app ? I use the curren...

Objective-C: Formatting text in a string object within a plist

Hello - I am a new objective-c/iPhone developer and am wondering if there is any way to apply formatting to text within a string in a plist? I have a plist that is an array of dictionaries. Each dictionary contains a few string objects, some of which I would like to contain lists and paragraphs of information. I am calling these string...

special characters in Objective-C plist

I had not run into this before but I wanted to know if it's possible to store KEYS with special characters in Objective-C / Cocoa Touch Since one can force a line break in a NSString with \n I wanted to store some values in a plist (and they do need to be the keys). It's just about 20 lines to static data (well, the keys, the values are...

Having a lot of trouble provisioning my iphone for development

I tried repairing disk permissions to try and get rid of a 100013 error I was getting on a development certificate, left the computer alone for the weekend. When I came back and tried to build my program I got an error : com.apple.tools.product-pkg-utility: error reading property list '/Users/Kevin/Desktop/iProspectLite/Entitlement.plist...

i want to show textfield data in tableviewcell which replace the existance data on cell in iphone ?

In my application i hve tableviewcontroller and its detailviewcontroller(dvc). dvc contains textfield and button.I actually want when i clicked on button textfield text is replaced the tableview cell text.what can i do ? explain in detail ...

How can I make Info.plist show English names?

I have a project with two Info.plist files (one for each target). In the second Info.plist, when I add a field it shows the internal name instead of the English name. For example UISupportedInterfaceOrientations instead of "Supported Interface Orientations". Also, when I click on the dropdown list to see all options, some of the options...

iTunes Music Store purchase parameters

Hi. I'm trying to work out how to generate the parameters for iTunes Music Store (iTMS) and what they are/mean. So far I can do all the other normal stuff like login, view account information, but purchasing looks to have some cryptographic element to it (or simply something I'm not seeing). For example, iTunes 9 when purchasing some ra...

How to write the data to the plist

HI can u send me sample code to add the data to the .plist. .my plist was in this format as follows.kindly help me out <?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"> <array> <string>http://localhost:8888/sample&lt;/s...

storing preferences within the app to be used later

How can I store a large float value, like 0.00032012 in the app?? I need to store that number, so when someone click a save preferences button, it stores a variable. Then when I relaunch the app, it will remember that number and post it in a text field. I was thinking of using plist, but how can I store variables in the plist??? Exampl...

Modify the links in plist using c#

Is there any code or tool available to modify the links within the plist, which are used in iPhone? ...

Creating a plist file only on first runnable in the device's documents directory

I current have everything setup to read from the documents directory and write to it , but Cannot do it because the file doesnt exist yet. How is a file created within the code? ...

Utility App and plist - is this the appropriate approach to making a flashcard style application?

Dear Developers, I am trying to integrate a question/answer section to one of my apps. I wanted to use a Utility style application where the question is loaded as a Uilable in the first view, and the answer is loaded in the flippedview. I was hoping to load the question and answer data from a plist, and integrate a shuffle option so ...

EXC_BAD_ACCESS when loading NSArray from .plist

I have a plist written from a NSMutableArray by [NSMutableArray writeToFile]. When trying to load that same plist with the following code: NSArray *testArray = [NSArray arrayWithContentsOfFile:[self pathForDataFile:@"reportingSpeicher.plist"]]; NSLog(@"count = %@",[testArray count]); I get bad access on the count or on any other opera...

extract data from plist & then store permanently on tableview's cell iphone ?

Hi All In my application one is mainviewcontroller which is subclass of uiTableviewcontroller holds data from plist when clicked on a particular cell its displays detailviewcontroller(dvc) which is subclass of uiviewcontroller. dvc holds textfield & button .actually when i clicked on button i write textfield's text on tableviewcell throu...

Why will my plist not populate my UITableView?

I have made some progress and am editing the question to be current again. My big issue now is that the grouped table view will load, but shows all of everything in each section with each row. Also, my UIAlertView is returning all references to my plist (null). How would I fix this because the references to the plist are killing me. Any ...