Re: Tab and Enter in NSTextView
Re: Tab and Enter in NSTextView
- Subject: Re: Tab and Enter in NSTextView
- From: "I. Savant" <email@hidden>
- Date: Sun, 3 Sep 2006 15:06:49 -0400
Yes, I suppose that part of the answer was incomplete as well.
Must be a bad day for me today, as evidenced by my spending two hours
tracking down a bug that turned out to be a disconnected outlet. Bad
developer! BAD! :-D
--
I.S.
On Sep 3, 2006, at 2:39 PM, Mike Abdullah wrote:
In the end I have gone with:
[[self window] selectNextKeyView: self];
since this handles the user's keyboard prefs properly.
Mike.
On 3 Sep 2006, at 19:17, I. Savant wrote:
You could subclass NSTextView and override -keyDown: ... In this
method, if the key is "tab", call [self nextKeyView]; ...
otherwise, call [super keyDown:...];
I hope this helps.
--
I.S.
On Sep 3, 2006, at 2:10 PM, Mike Abdullah wrote:
I have an NSTextView in my app. I wish to modify it so that
using the Tan key will not insert a tab, but will move to the
next control.
I know I can do this using setFieldEditor:
However, this also disables use of the enter key. I want to be
able to still use the enter key to add new lines of text. Any
ideas?
Mike.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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