plist

Change a localized InfoPlist.strings using an Xcode target

Here's an obscure problem. I'm using an InfoPlist.strings to localize my app name. It's only got one value: CFBundleDisplayName = "Mon App". The strings file is localized (putting it in a directory for that localization). I've just made an extra target, where I change things like the non-localized app name (different Info.plists), and ...

Read from plist insted of Code array

Hi Guys am Using UITableView - Searching table view its really nice easy tutorial but i really have bad time try to read from plist that what i did change - (void)viewDidLoad { [super viewDidLoad]; //Initialize the array. listOfItems = [[NSMutableArray alloc] init]; TableViewAppDelegate *AppDelegate = (TableViewAppDelegate *)[[UIA...

Setting desktop picture in OS X 10.6

Possible Duplicate: How can I programatically change the background in Mac OS X? Hi, I've whipped together a small (in this case python, but the language is not important) script which gets a jpg from a webpage and sets it as the current background image in OSX (testing and coding on 10.6.3). My question is how to effectuate...

Creating an application that can open files of a given format

I've got an app, written in Obj-C. The info.plist has a list of file types that the app can open. I'm pretty sure that this is working because when I try to drag a file of an unacceptable type, the app doesn't highlight, but when I drag a file of an acceptable type, it does highlight, and lets me drop. When I drop, the app starts up, co...

getting plist from documents directory instead of Bundle

I'm trying to point to the documents directory instead of the Bundle, I have the following code: - (id)initWithLibraryName:(NSString *)libraryName { if (self = [super init]) { libraryPlist = libraryName; libraryContent = [[NSArray alloc] initWithContentsOfFile:[[NSBundle mainBundle] ...

Binary Plist Serializing/Deserializing using C#

Hi I have an iPhone client talking to a Windows server written in C#.The data from the device is sent as a binary plist.I am looking for a framework in C# that understands the binary plist and converts it into a dataset. On googling, I ran into plutil but that's a CLI and I need something that does it inline with the application. Thank...

iphone how to localize only particular parts of app

i'm making a korean/english app, so naturally i would need both english and korean displayed on the same tableview cell at the same time. i've considered specifying an element in the plist to be a particular language... but how would i write in korean characters? i have a dreadful feeling there will be much to custom code for this with...

automatic updates

Hi, I wanted to create an auto upate for my safari extension. i got a update.plist on my webserver and it's in my manifest but for some reason it doesn't work. Can someone explain how i Create the plist file <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyL...

writeToFile Output .plist not writing correct values

Hi Guys I've been trying to write a simple shopping list program but when i try to write the modified values back to a plist file i only get the original values that were in the file to start with. My original plist file is one large array (dataArray) of dictionaries with only two fields in each dictionary one bool and one string when ...

Generating random names from plist

I'm wanting to read a list of forenames and surnames from a plist I have created, and then randomly select both a forename and a surname for a 'Person' class. The plist has this structure; Root (Dictionary) -> Names (Dictionary) --> Forenames (Array) ---> Item 0 (String) "Bob" ---> Item 1 (String) "Alan" ---> Item 2 (String) "John" -->...

What determinates the options in property list of a .plist file?

When I try to add an item to an existing iPhone Info.plist, the options in the list is not iPhone-relevant (e.g. "Application is visible in Classic" which seems to be some desktop OS stuff). How can I get back the proper list of choices for iPhone? Thanks! p.s. I found this when editing the avTouch sample project's Info.plist file. ...

How to merge two arrays in a plist?

I have a plist with two string arrays. I want to merge these two arrays. I tried selecting all the strings in one array and copying to the other, but I cant select multiple items. I don't want to do this programmatically. I'm on a Mac using xcode. Any thoughts? ...

iPhone table view, using NSDictionary & plist

Hi, I'm populating a UITableView with NSDictionary and dictionaryWithContentsOfFile plist. In the plist I have 3 rows, each row has an array. I don't know what the id/index of the row will be. Under: // Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSInde...

Iphone SDK Help me for a request to show only one category from data plist !

Hi ! I look for a friends who can help me for long time ! I'm beginner and I try to understand... HOW I can make a request to show all data (from plist) in SAME category (NOT ALL !) for exemple : show only the movie have : genre = Action Please help me ... Thanks a lot ! Excuse my bad english ! Is it in this code I must make it or an ...

Creating Arrays from a plist file in iphone SDK 3.3 and up : objective c

Hello everyone. I have run into this issue and have put some major time into finding the answer. I am somewhat new to objective c but not to programming. Here is my question. I have a plist file with this structure root { A ( {songTitle : contents of song}, {songTitle : contents of song} ), B ( {songTitle ...

Error in JSON or writing dictionary

I'm gettin the followig error after converting JSON echo into a dictionary, * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSMutableArray insertObject:atIndex:]: attempt to insert nil object at 0' ** Call stack at first throw: Here is my JSON deserialization code, I've used this model before for ...

NSdictionary object in plist needs to be a array of arrays, how to convert?

I have a dictionary .plist that has a subarray in it, however during the conversion in Json in converts to an array. The item is "profile" in the image below, as you can see, it's a Dictionary, how do I turn programmatically convert into an array": I would also like the items in the dictionary to have Item 0, Item 1, etc. so it looks ...

Generating a PLIST file - to be read by Objective-C - via PHP

The title sums it up. Would that be possible, as in, is the data structure of a PLIST file possible to generate efficiently via PHP for an Objective-C app to read? Or, would a different format like XML be better? I'm more keen to go with PLIST as I hear it's easier to parse from Obj-C, and won't require any external libraries (this is f...

Edit binary plist under linux

How can i change values in the binary plist under linux os? I know i can to it under mac with defaults or PlistBuddy. I found some perl that convert from binary to text Mac::PropertyList::ReadBinary ...

how to get plist file's data content in tableview's 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 ...