Re: NSTextView and nextKeyView
Re: NSTextView and nextKeyView
- Subject: Re: NSTextView and nextKeyView
- From: Douglas Davidson <email@hidden>
- Date: Mon, 15 Oct 2001 10:15:49 -0700
On Sunday, October 14, 2001, at 09:50 AM, Doug Brown wrote:
I have a very simple problem that I'd like to fix. It seems that the
nextKeyView doesn't apply to NSTextView because when you press tab, an
actual tab goes into the text inside it (of course, this is the desired
effect for most people). However, I have it set so that the NSTextView
is not editable, but it is selectable. I'd like to be able to press tab
to switch to the nextKeyView like NSTextField works. How would I do
that? Thanks,
Try
[myTextView setFieldEditor:YES];
and see if that does what you want. It should make an arbitrary
textview act like the field editor that you get when editing a textfield.
Douglas Davidson