plist

Editing .plist files - are single quotes allowed as strings?

In particular, I'm editing the AutoCompletion.plist file for CSSEdit (if that even matters). My question is, are there any characters withing the STRING elements that need to be escaped? spaces? quotes? EDIT: Just to be clear, I'm not using CSSEdit to edit the file - rather the file is part of the CSSEdit package. I'm using TextMate to...

How does Apple make the info.plist display its "Information Property List"?

My plists simply start with "Root". Theirs contains arrays of useful stuff you can select to tweak the configuration. The specific info.plist I am looking at is in an iphone project. I have researched this a little bit, (not alot) but haven't even detected a smell of solution. What mechanism is putting this together? Can I bend it to my...

Problem in parsing .plist file.

Hi, I've one plist file and I want to parse it and copy it's content into NSArray,and code that I am using for that is. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES); NSString *documentsPath = [paths objectAtIndex:0]; NSString *fooPath = [documentsPath stringByAppendingPathCompone...

copyplist failed with exit code 71

I have an iPhone app that's shipping (vConqr - you should go and buy it :-) ). I build the project on several different machines, including a colleague's, and it's been working fine. However, just recently, on my second dev machine my build fails every time with the error: /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/C...

Internal versioning for iphone apps

Hello, Does anyone have any suggestions as to how to version an iphone application aside from using the "Bundle Version" and "Bundle Version short string". I'm finding difficulty relying on these values to version control my application b/c I have multiple variations (lite, paid) of the same app. Also the current implementation of itunes...

modifying plist file

i want to modify entries in custom plist file programmatically. can anybosy suggest me a way to do that? i have tried modifying values of keys but file is not getting saved.. ...

Best Method of Persisting Custom Objects

Hey guys, I have a custom object that simply inherits from NSObject. It has 3 members - two floats and an NSDate. My app is going to have an array with a number of these objects kicking around, and I need to persist it between runs. What is the best way to accomplish this? I've thought about using the SQLite db, but I'm thinking that ...

Convert an Mac OS X binary formatted plist to readable format in C#

Does anyone know if/how I can convert a binary formatted Mac OS X plist file to a plain XML string in C#? I know there are some plist editors for Windows available that says they support binary formatted plist files, but I need to do this inline in my own application. ...

Is it possible to add info or help text to an iPhone settings bundle?

Several of the Apple-provided apps have informational/help text in their settings. For example, the Keyboard settings shows: which includes the help text "Double tapping the space bar will...". I know I can do this in my app by adding a group footer, but is it possible to do this in the settings app by adding a field to the plist fi...

Problem with retreiving Array data stored in plist File

Hi, I have a problem, how can we retrieve the array data stored in plist file. The plist file and source code is as shown below, ------------------------plist File------------------------- <?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;...

Is there an easy way of sorting a plist (array of dictionaries) by key value?

I need to reorder a plist (an array of dictonaries) by Key value. In this example content I'd like to order by the value for the key Name (Matt, Joe): <dict> <key>Name</key> <string>Matt</string> <key>Details</key> <string>Me</string> </dict> <dict> <key>Name</key> <string>Joe</string> <key>Details</key> ...

Serializing a Python Object to XML (Apple .plist)

Hello Pythonistas, I need to read and serialize objects from and to XML, Apple's .plist format in particular. What's the most intelligent way to do it in Python? Are there any ready-made solutions? ...

accessing plists on iphone simulator

So I have started building plist files using NSCoder, but as I"m developing i want to look at them and see what data is being saved. How do i find/access the plist files generated by my app in the simulator (and on the device when i get to that) Places Ive looked: application bundle build directory ...

Can plists be securely read from untrusted source?

I need simple client-server communication with iPhone app, and XML property lists seem like quite easy and simple solution that saves me trouble of dealing with XML parser delegates and building these structures myself. I just wonder is it wise to use NSPropertyListSerialization class with external data? Are there any obscure plist feat...

iphone plist or sqlite for static data ?

Is there any "Best Practice" approach to storing persistent STATIC data for iphone apps? I have an app that reads a dictionary of approximately 1000 items many of which are arrays. I started out using a single plist for this and it has become somewhat unwieldly especially since much of the values are html strings. Is there a better wa...

How do I store a string as an array in a Cocoa property list?

I am trying to save two strings. One string needs to be saved as type ARRAY in the pList and the second string needs to be saved as String in the Array. I can use the code: [dictionary setObject:(id)anObject forKey:(id)aKey>] but it doesn't save it correctly. I can cast one of the strings as an array, but it still doesn't work right. ...

canonical way to read plist from URL into NSDictionary? How to control timeout?

I have a servlet that serves up a plist XML file. What's the best way to slup this into an NSDictionary? I have this basically working with: NSDictionary* dict = [ [ NSDictionary alloc] initWithContentsOfURL: [NSURL URLWithString: @"http://example.com/blah"] ]; But then I have no control over the timeout; I'd rather not have m...

Parse Plist (NSString) into NSDictionary

So I have a plist structured string, that get dynamically (not from the file system). How would I convert this string to a NSDictionary. I've tried converting it NSData and then to a NSDictionary with NSPropertyListSerialization, but it returns "[NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x100539f40" when I att...

plist or sqlite

I have to store a huge amount of data on IPhone then sort and search it as per requirement. Can anyone suggest to me which of SQLite or plist should I use? I was thinking of using SQLite. Which of plist and SQLite takes less processing time in searching and sorting? If some one has some reference guide then let me know. Regards ...

Help with dictionaries, arrays and plists on iPhone

Hi everyone, I would appreciate some help with something I working on and have not done before now and having some proplems because I don't think I understand exactly how to do this. What I'm wanting to do i'm sure is simple to most all of you and will be to me as soon as I do it the first time correctly....anyway.... I have a tableview ...