disable tab in textview


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.