Re: Focus issues with NSTableView in NSPanel
Re: Focus issues with NSTableView in NSPanel
- Subject: Re: Focus issues with NSTableView in NSPanel
- From: Corbin Dunn <email@hidden>
- Date: Tue, 21 Aug 2012 10:41:48 -0700
On Aug 21, 2012, at 9:38 AM, Kyle Sluder <email@hidden> wrote:
> On Aug 21, 2012, at 9:07 AM, Jean Suisse <email@hidden> wrote:
>
>> Well, then you just need to override:
>>
>> - (BOOL)needsPanelToBecomeKey
>>
>> in the NSTableView (subclass) and return NO.
>
> I'll try it, but frankly this doesn't make sense. I *do* want the panel to become key when the user clicks the table view.
Yeah, but you also don't want the standard NSTableView HI behavior, so you have to do something custom.
corbin
> When I return YES from this method, the table view becomes first responder and the panel containing it becomes key, just like I expect, but the selection in the table view does not change to match the item that was clicked.
>
> --Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden