I am creating an application in which a user can click on a city name in a table. I define the name that the user has chosen to match the keyword in NSDictionary.
The problem is that some cities have the name å ä ö, since the application should work in Sweden.
NSDictionaries are stored in a plist file. Looks like that:
{ Göteborg = { name = "Göteborg"; adress = "xxx"; phone = "xxx"; }; }
How do I do this job? I can come up with a few verses that I don’t know how to implement:
Go to the plist file in some way. But how?
In plist, instead of Göteborg, I could name the Goteborg key and in the code always exchange å ä ö for ao before calling the key in the dictionary. But how can I do this if I am not going to iterate over a string and create a new one? I guess this is possible in a simple way, for example. method "change all ö to o".
This is the error message I get when trying to compile the application:
English.lproj/factories.plist: Unexpected character { at line 1 Command /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist failed with exit code 1
Thanks in advance!
source share