Okay so 'return' is 'insertNewline', I love that, but where in god's green earth is the insertSpace?
So i'm trying to invoke a spellcheck (for a keyword) after the user completes the word (aka, when they hit space bar or return ). But daddy needs to detect space-bar. Heres the textView delegate method i'm implementing...
/* listen to commands */
-(BOOL)textView:(NSTextView *)aTextView doCommandBySelector:(SEL)aSelector
{
BOOL result = NO;
if (@selector(insertNewline:) == aSelector) {
// does something
result = YES;
return result;
}
return result;