]> git.lyx.org Git - features.git/blobdiff - src/support/AppleSupport.m
Revert "WIP: refactor Systemcall"
[features.git] / src / support / AppleSupport.m
index 2c78bd2d8c469bb7e1c188443753663bf3e80b53..4278564a45f55e5b35ec4035a2122ea9fb95aead 100644 (file)
@@ -49,3 +49,19 @@ bool appleUserTabbingPreferenceAlways() {
        return false;
 #endif
 }
+
+
+int NSTextInsertionPointBlinkPeriodOn() {
+       NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
+
+       return [prefs objectForKey:@"NSTextInsertionPointBlinkPeriodOn"] == nil ?
+               -1 : [prefs floatForKey:@"NSTextInsertionPointBlinkPeriodOn"];
+}
+
+
+int NSTextInsertionPointBlinkPeriodOff() {
+       NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
+
+       return [prefs objectForKey:@"NSTextInsertionPointBlinkPeriodOff"] == nil ?
+                       -1 : [prefs floatForKey:@"NSTextInsertionPointBlinkPeriodOff"];
+}