summaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2018-10-21 18:40:39 +0200
committerMichael Lutz <michi@icosahedron.de>2018-12-08 20:13:27 +0100
commit4bf216993a1df7a29922bf34e2d8191460842452 (patch)
treea8de9ee762949c1cb0fb07f0d14d6ebdeb1e5510 /src/string.cpp
parent8d7cd6a5262ae151e30fe6db18d04648ebe9d8d7 (diff)
downloadopenttd-4bf216993a1df7a29922bf34e2d8191460842452.tar.xz
Add: [OSX] Native text caret handling.
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 845225d6f..96e1d8275 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -874,9 +874,19 @@ public:
}
};
+#if defined(WITH_COCOA) && !defined(STRGEN) && !defined(SETTINGSGEN)
+/* static */ StringIterator *StringIterator::Create()
+{
+ StringIterator *i = OSXStringIterator::Create();
+ if (i != NULL) return i;
+
+ return new DefaultStringIterator();
+}
+#else
/* static */ StringIterator *StringIterator::Create()
{
return new DefaultStringIterator();
}
+#endif /* defined(WITH_COCOA) && !defined(STRGEN) && !defined(SETTINGSGEN) */
#endif