I have a custom view with several NSTextField controls for which I want to provide custom completion, and I have successfully implemented everything that uses the NSTextFieldDelegate protocol. Autocomplexes are full or place names, depending on which text field is being edited.
The problem is that auto-completions almost always contain a space character, so if the user enters something that matches the sentence but does not want to accept this sentence, the field editor will accept the sentence when the user presses the space bar. I want the field editor to accept the sentence only with the tab key.
I understand that this will involve subclassing NSTextView to provide a custom field editor, and this is documented by Apple as an acceptable way, however it is not clear to me what methods I need to override and what overridden methods I need to do to get what I want.
Can anyone suggest how this is achieved?
source share