Re: nextKeyView broken
Re: nextKeyView broken
- Subject: Re: nextKeyView broken
- From: Steve Gehrman <email@hidden>
- Date: Fri, 26 Sep 2003 17:51:19 -0700
On Friday, September 26, 2003, at 05:56 AM,
email@hidden wrote:
>
>
> I've got an NSTableView and an NSTextField. I set the first responder
>
> to the text field, and set the nextKeyView from the text field to the
>
> table, and the nextKeyView from the table to the textField. If I
>
> select the table and hit tab, it selects the text field (that works),
>
> but if I hit tab from the textfield, it does nothing. It should
>
> select
>
> the tableview.
>
>
>
> This should be super simple. I've tried everything, why doesn't this
>
> work?
I found the answer in the archives. I had to subclass the NSTableView
and add...
- (BOOL)needsPanelToBecomeKey;
{
return YES;
}
Seems to me that this should be the default.
-steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.