plist

Write a PLIST file in Groovy

I have a Groovy application for Windows and am trying to convert a Hash object to an Apple plist file. What is the best way to go about this? Seems like this is something that must already be solved in Java but I can't seem to find any examples. Thanks in advance ...

Data storing in plist works in simulaor but not in device.

I am new to iphone development.I have created plist such as from my previous post. It works well in simulator but not in device.Please help me out.Thanks. EDIT:i am getting the saved value from the plist and checking for the condition.When i use simulator it works but not in device. ...

UIDatePicker Component value

I have a UIDatePicker that shows (ex. April | 13 | 2010). I need to get each component value and set it as an integer so it can be put into three separate keys in a Plist. MyMonth Number 04 MyDay Number 13 MyYear Number 2010 I can set a text label by using: NSDateFormatter *df = [[NSDateFormatter alloc] init]; df.dateStyle =...

How to handle float values in a plist

I'm reading in a plist from a web server, generated with some php. When I read that into an NSArray in my iphone app, and then spit the NSArray out with NSLog to check it out, I see that the float values are treated as strings. I would like the "distance" values to be treated as numeric and not strings. This plist is displayed in a ta...

Environment variable in xcconfig won't expand in Settings.bundle/Root.plist

I have defined my own environment variable (VERSION) in a .xcconfig file and based my configurations on that as described at http://www.silverchairsolutions.com/blog/2008/03/automating-cocoa-deployments-with-sparkle-and-xcode. My environment variable is indeed expanded in Info.plist but not in my Settings.bundle/Root.plist. PRODUCT_NAME ...

Is there a way to remove the source domain from the window title in an out-of-browser Silverlight 3 app?

We may not have the option to migrate over to Silverlight 4 right away, so I was wondering if anyone found a way to remove the source domain name from the window's title for out-of-browser Silverlight 3 applications. Our window title currently looks like this: "My App - localhost." Under Mac, I found the Info.plist file in the applicat...

iPhone: How to write plist array of dictionary object

Hello, I'm a young Italian developer for the iPhone. I have a plist file (named "Frase") with this structure: Root Array - Item 0 Dictionary Frase String Preferito Bool - Item 1 Dictionary Frase String Preferito Bool - Item 2 Dictionary Frase String ...

extract data from Plist to array and dictionary

Hi I made a plist that looks like that: <?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"> <plist version="1.0"> <array> <array> <dict> <key>Company</key> <string>xxx</string> <key>Title</key> <string>VP Marketi...

Plist array , cannot change dictonaries inside

i have a plist that's at its root an array with dictonaries inside it. i load a plist from my recourses as an NSMutableArray. [NSMutableArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Filters" ofType:@"plist"]] i store it into nsuserdefault because it has to be persistent between startups. [[NSUserDefaults sta...

iPhone + Provisioning Profile + app-info.plist + entitlements.plist = iPhoneApp ? How ? What exactly does entitlemets.plist do ?

To execute my application in iPhone first of all I have to add provisioning profile in to my iPhone. Good. But I don't understand the reason behind adding a entitlements.plist in iphone application in xCode under resources. What does that entitlements.plist file do actually ? Why that .plist file have only single Boolean in it ? (get-t...

Reorder `UITableViewCell` while creating it?

Hey. I am using a UItableView to show a list of stuff. When the user clicks on the accessory, it writes the location of the cell to a plist. Then it sends the [UITableView reloadData]-selector to the tableView. How can I set a different indexPath to a UITableViewCell inside the tableView: cellForRowAtIndexPath: method? Thank you. ...

How do I rewrite a plist if its data types are immutable?

I am getting comfortable with using plists for initializing my app. I now want to save app state back to the plist used to initialize the app and I find myself stuck. At application startup I ingest the plist into an NSDictionary which is immutable. I now want to update the NSDictionary by replacing old values with new values for existin...

Is it possible to filter users from a launchd plist?

I have some launchd plists that are now placed at the administrator per-user level, particularly inside: - /Library/LaunchAgents OR - /Library/LaunchDaemons I'd like to avoid that some of those services could start only for one user (possibly avoiding to move all the plists to ~/Library/LaunchAgents), which is the simplest way? Thanks ...

iPhone: Types of persistent store

Hi, I would like to know which type of persistent store would be most appropriate in what situations, like how can I decide where to use core data, property list or archives for my iPhone application. Thanks ...

iPhone app not making file in device but works in simulator

I have an app and it stores data to a .plist file in the resources group in Xcode (if that matters). And whenever I run it on the simulator it works perfectly with the file. On the iPhone, however, it doesn't seem to be interacting with the file. Thanks in advance! ...

which iphone data model to choose?

i need to get some data somewhere to put in a timeline. the data strcture is like this: - Item - Name - Year - ShortInfo (mainly keywords and short texts) - LongInfo (much text with videos/audios (urls) a friend of mine told me i should you a plist and get all that stuff in there, but what about a sqlite database? any advice? ...

NSDictionary with specific property of plist

Hi, I have a plist with key values. Each key represent a language, let's say 'it' 'en' ....ecc The value of each key is another key/value(=array) set. At startup I would like to create a dictionary by reading only a specific key. Let's say the locale of my iphone is 'it', then the init method would only parse it key, because the only w...

Download files from server and replace how to ??? iphone

Hi all ! I have plist in my App what i liked to do is to download plist from a folder on my website using http://anadress and then replace the plist in the main bundle by the new one i've download. And i have no idea on how to do this. If someone could help. thanks ...

How to store values inside Plist and read while runtime in iphone 3.0?

Hi Guys, how to store values inside Plist and read while runtime in iphone 3.0?. Thanks in Advance. ...

Why doesen't it work to write this NSMutableArray to a plist?

edited. Hey, I am trying to write an NSMutableArray to a plist. The compiler does not show any errors, but it does not write to the plist anyway. I have tried this on a real device too, not just the Simulator. Basically, what this code does, is that when you click the accessoryView of a UITableViewCell, it gets the indexPath pressed, e...