Posted By

robinlu on 09/19/12


Tagged


Versions (?)

disable tab in textview


 / Published in: Objective C
 

  1. - (BOOL)textView:(NSTextView *)aTextView doCommandBySelector:(SEL)aSelector {
  2. if (aSelector == @selector(insertTab:)) {
  3. [[aTextView window] selectNextKeyView:nil];
  4. return YES;
  5. }
  6.  
  7. return NO;
  8. }

Report this snippet  

You need to login to post a comment.