Add: [OSX] Native text caret handling.

This commit is contained in:
Michael Lutz
2018-10-21 18:40:39 +02:00
parent 8d7cd6a526
commit 4bf216993a
3 changed files with 158 additions and 0 deletions

View File

@@ -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