Use a Plist dictionary for App settings?

In your example Debug is a string, not an array (which is what you seem to say it is in the question). In either event, the issue is that you are accessing the key in the wrong dict. You have: swDebug.

On = plistDict objectForKey:@"Debug" You would need: swDebug. On = plistDict objectForKey:@"Settings" objectForKey:@"Debug" Since settings is a dictionary within the dictionary plist.

In your example Debug is a string, not an array (which is what you seem to say it is in the question). In either event, the issue is that you are accessing the key in the wrong dict. You have: swDebug.

On = plistDict objectForKey:@"Debug"; You would need: swDebug. On = plistDict objectForKey:@"Settings" objectForKey:@"Debug"; Since settings is a dictionary within the dictionary plist.

– WrightsCS Nov 26 '09 at 7:55 You can't, you have an immutable structure. If you want to do that you need to create NSMutableDictionary instead of an NSDictionary.It is also pretty expensive to handle yourself because changing anything requires completely rewriting the file. You would probably be better served using NSUserDefaults for this kind of thing anyway.

– Louis Gerbarg Nov 26 '09 at 18:16.

Since settings is a dictionary within the dictionary plist.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions