I have this code (porting from another language, therefore, several different naming conventions, but please do not forget about it now)
var FDefaultsList: NSDictionary = [String:String]();
let TmpKey: String = TmpKeyValue[0];
let TmpValue: String = TmpKeyValue[1];
if (TmpKey != "") && (TmpValue != "") {
FDefaultsList.setValue(TmpValue, forKey: TmpKey);
}
However, no matter which setValue variable I use, the setValue call throws an error (it makes no sense, as far as I can tell) and leaves the application (the Xcode editor is transferred to the AppDelegate class : UIResponder, UIApplicationDelegate )
Am I assuming I'm using NSDictionary incorrectly? I am trying to read in a text file where each line is key = value lines
source
share