Thread: Is there a TIniFile implementation using "NSUserDefaults" on Apple?
 |
This question is answered.
Helpful answers available: 2.
Correct answers available: 1.
|
|
Replies:
2
-
Last Post:
Jan 6, 2016 1:36 AM
Last Post By: Hans Jakobsen
|
|
|
Posts:
103
Registered:
9/10/01
|
|
|
|
Posts:
332
Registered:
4/6/00
|
|
I am looking for a platform independant way to store user settings (HKCU on Windows and NSUserDefaults on OSX/iOS).
I found this article, but the sample code seem to be outdated.
http://edn.embarcadero.com/article/43065
There are various implementations around. For example, I have one (originally done for XE2/OS X, later extended for iOS and Android):
https://github.com/chrisrolliston/CCR.PrefsIniFile
Technically I'm using the Core Foundation API variant rather than NSUserDefaults, but it comes down to exactly the same thing.
|
|
|
|
Posts:
103
Registered:
9/10/01
|
|
Thanks, I will have a look at your implementation.
|
|
|
|
Legend
|
|
Helpful Answer
(5 pts)
|
|
Correct Answer
(10 pts)
|
|
Connect with Us