• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextView tab out of
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView tab out of


  • Subject: Re: NSTextView tab out of
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 2 Mar 2006 16:00:12 -0700


On Mar 2, 2006, at 3:50 PM, Marcus S. Zarra wrote:

- (BOOL)textView:(NSTextView *)textView
doCommandBySelector:(SEL)commandSelector {
if (commandSelector == @selector(insertTab:)) {
[[textView window] makeFirstResponder:[textView nextResponder]];
return YES;
}
return NO;
}


But the end result is that the tab is ignored. What am I missing?

You got the delegate response backwards. YES means the command should be done, but you probably don't want it inserting tabs. You should probably also use -selectNextKeyView: instead of -makeFirstResponder: as well.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSTextView tab out of
      • From: "Marcus S. Zarra" <email@hidden>
References: 
 >NSTextView tab out of (From: "Marcus S. Zarra" <email@hidden>)
 >Re: NSTextView tab out of (From: Nick Zitzmann <email@hidden>)
 >Re: NSTextView tab out of (From: "Marcus S. Zarra" <email@hidden>)

  • Prev by Date: Package Bit
  • Next by Date: Re: Preventing Undo Registration when inserting into the MOC (managed object context)
  • Previous by thread: Re: NSTextView tab out of
  • Next by thread: Re: NSTextView tab out of
  • Index(es):
    • Date
    • Thread