-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I'm trying to write an NSDictionary to a plist but when I open the plist no data has been written to it.
From the log my path looks correct and my code is pretty standard.
Any ideas?
NSArray *keys = [NSArray arrayWithObjects:@"key1", @"key2", @"key3", nil];
NSArray *objects = [NSArray arrayWithObjects:@"value1"…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Compare the following:
using NSUserDefaults saving it with synchronize
using NSDictionary saving it with writeToFile in the app Documents folder
What are the differences? Personally, I prefer to mantain different NSDictionary organized by topic rather than use a single NSUserDefaults.
Am I thinking…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am a .NET programmer and new to Objective C.
I am trying to make a UIPickerView which acts like a .NET dropdownlist. User sees the list of text and selects one and the selected value (which is the ID) is used in code.
I have been browsing for almost half a day trying to figure this out. I could…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there a way to remove duplicate (key-value) pairs from NSDictionary ?
EDIT:
My description was misleading, I have duplicate pairs e.g.
key1-value1
key1-value1
key2-value2
key1-value1
etc..
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Sorry if the question isn't correct, I'm very new in Objective-C.
I understand why this code throw the Warning: "warning: passing argument 1 of 'initWithObjectsAndKeys:' makes pointer from integer without"
NSDictionary *dictNames =
[[NSDictionary alloc] initWithObjectsAndKeys:
3, @"",
4…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Background:
I have a tab bar application, which has a tableView as the "heart" of the app. It loads data from a plist and, through a button that checks if there are any updates on the remote plist file, updates the local plist with the remote contents.
Then, i have another tableView, that should…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello everyone,
I'm parsing a (not well formed) Apple Plist File with java.
My Code looks like this:
InputStream in = new FileInputStream( "foo" );
XMLInputFactory factory = XMLInputFactory.newInstance();
XMLEventReader parser = factory.createXMLEventReader( in );
while (parser.hasNext()){…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When editing plist files in XCode, it can detect the type of plist and show human-readable strings to make it more easy to edit the file. The Info.plist, for example.
Thanks to This question, I found the (or a) place where it stores that structure definition, as InfoPlistStructDefs.xcodeplugin.…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a spreadsheet, the contents of which I would like to include as an xml plist in my Xcode project. However, I can't figure out how to actually perform the export from Excel and the import into Xcode.
Any help would be greatly appreciated please.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have one dictionary I need to save into a plist. The paletteDictionary always returns nil:
- (void)saveUserPalette:(id) sender
{
[paletteDictionary setObject:matchedPaletteColor1Array forKey:@"1"];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask…
>>> More