plist

Can somebody help me out with plists?

Hi all, I have a little problem with plists. I don't know how to read data from my plist and in general how to structure it correctly. Here is how it should look like: Root product 1 type 1 string 1 string 2 typ2 2 string 1 string 2 product 2 type 1 string 1 string 2 typ2 2 string 1 string 2 The strings are paths to im...

what's faster on iPhone? XML pList or JSON?

Assuming both XML plist and JSON are delivered over http, gzipped, which one will be processed faster on an iPhone? ...

iPhone saving game using P-Lists

Hello! I am currently using a P-List to save data in a game I'm developing. I'm curious about something though. Maybe this is a stupid question: but each time I write to the P-List, is it overwritten? If that is the case, and it just doesn't automatically ADD (i.e. appending) values to it, then that would be perfect. Thank you for you...

how to check if plist is empty

How can i check whether is a plist is empty? ...

Need help with binary plists.

I am writing a c# class that parses and writes binary plist files. All of the information I have gotten is from this Java implementation. http://www.koders.com/java/fidE214DE8B5C627C9E1C03ED93B488941BAE17AF01.aspx?s=base64#L111 I have successfully written the header and object table now I just need help understanding what the offset tab...

how to convert NSString to NSMutableArray?

hi, i have an NSString that is value in plist format. i download this string from url. but i dont wanna write it to a file. when the string comes Asynchronous, i want to put it to nsmutablearray. how can i convert string (in plist format) to nsmutablearray? there is some methods, initWithContentsOfURL, initWithContentsOfFile. but no inti...

Saving data to a plist file

Hi All, I am having a little trouble saving to a plist file, when i am reading the data i am using: - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return amounts.count; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { //Cr...

Parsing dictionary from plist into array

Hi, could anyone help with loading dictionary objects correctly into the array. Loading of plist into dictionary object works fine, and I was able to output some of it into command-line. Problem is that this way of loading bundles each Name and Price sets into same cell in the array. IE: Is it possible to load them separately? Or perh...

What's the difference between 'Day' and 'Weekday' in launchd StartCalendarInterval?

I'm working with launchd to run some automated tasks, and I was wondering what the difference is between 'Day' and 'Weekday'. According to http://discussions.apple.com/thread.jspa?threadID=1361809 there is a 'subtle' difference that can cause launchd to misbehave. Ultimately, I'd like to have a plist that runs every weekday (Mon - Fri...

can't read plist from resources

hi, in my resources directory i have a file called lsf.plist i want to load this file (dictionary) but i always get null as content of the file. i am using the following code. i've verified that the file is in the app after the build. self.path = [[NSBundle mainBundle] pathForResource:@"lsf" ofType:@"plist"]; NSLog(self.path); self.l...

Very large NSDictionary vs Core Data vs SQLite for read-only look up on iPhone?

I'm tinkering around with a iPhone word app where I am using a DAWG structure for finding anagrams from a user defined word bank in real time as the user types. That part works well. As the words are identified, I want to retrieve specific information about each word which I currently have in a plist file (keyed by word). This informa...

Is CFBundleIconFiles the same as Icon File?

I am trying to add a hi-res icon to my iPhone app. Is Is CFBundleIconFiles the same as Icon File in the screenshot below? ...

What is the HTTP content type for binary plist?

I am modifying a rails server to handle binary plist from an iPhone client via POST and PUT requests. The content type for text plist is text/plist, as far as I can tell. I would like the server to handle both text and binary plists, so I would like to distinguish between the two forms. What is the content type for binary plist? ...

Read plist data into a NSArray but get null

I got same warning here “local declaration hides instance variable” warning but I got more problems... Here is my code - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.someaddress.php"] cach...

Loading plist with array-->dictionaries-->dictionaries into core data?

HI, I have a plist that comprises an array of dictionaries that each contain multiple dictionaries of strings. That is I have a: MusicDataArray-->Mel ---->filename1 ---->filename2 ---->filename3 -->Bass ---->filename1 ---->filename2 I need to read this ...

How to write multiple arrays in plist in iPhone?

Hi friends, I have ten arrays in my application. I want to write those array values into the (document s directory)plist. Is possible to put 10 arrays into the one plist?.Else i will create separate plist for each arrays. Which one is possible to implement my application?. Please guide me and give some sample links. Thanks ...

Apple binary plist and/or keyed archive file format documentation?

Are Apple's binary plist format and/or the related keyed archive format actually documented anywhere? I know that there is Apple open source code for binary plist parsing out there, which is a good start, but reverse-engineering the format and its revisions from that is less than ideal. Is there any actual explicit documentation on thi...

check if plist exist, if not load from here

I am trying to check whether a plist exists in my doc folder: if yes, load it, if not load from resource folder. - (void)viewWillAppear:(BOOL)animated { //to load downloaded file NSArray *docpaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [docpaths objectAtInd...

Creating a timed launchd plist.

Hello everyone! I'm trying to create a plist for the LaunchAgents folder that will run perpetually and call a shell script every 30 seconds. It started with a template that I got here and that I tried to tailor to fit my needs, but it's still not working. Any help? <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple...

Iphone SDK:A bug or my logic error ,tableview can't scrolling down ????

It's happened Intermittently Check my code and compare the print result maybe someone can know what's wrong with my code... 1.I load a plist data from an URL - (void)viewDidLoad { NSURLRequest *theRequest=[NSURLRequestrequestWithURL:[NSURLURLWithString:@"http://www.envolab.com/envotouch/ios_status_req_test.php"] ...