I have a subclass of the builtin ui.TextView and it is created via the awesome objc_util tools. It does have many great features. I am still finding my way through the new class. My question now is that I cannot find a way to turn off the spellchecking for the custom TextView. Code is as follows:
from objc_util import *
CustomTV = create_objc_class('CustomTV', ObjCClass('SUITextView'))
def main():
main_view = ui.View(frame=(0, 0, 400, 400))
v = CustomTV.alloc().initWithFrame_(((0, 0), (400, 400)))
# Now how do I turn off spell checking here?
# There is no setSpellCheckingType_ method ...
ObjCInstance(main_view).addSubview_(v)
main_view.present('sheet')
if __name__ == '__main__':
main()
Similarly, how do I turn off Auto-Correction and Auto-Captialization (they seem to be off by default but what if I'd like to enable them)?
A further question (may be naive) is: The new View object is a subclass of ui.TextView, but it is presented as a ObjCInstance object. Is it somehow possible that I can wrap it so it can be called like a regular ui.TextView? (this would allow me just to write code like v.autocorrection_type = False.
EDIT: there is setSpellCheckingType_ method but seems to have no effect. There are certainly no setAutocorrectionType_ or setAutocapitalization_ methods.