Re: Focus issues with NSTableView in NSPanel
Re: Focus issues with NSTableView in NSPanel
- Subject: Re: Focus issues with NSTableView in NSPanel
- From: Jean Suisse <email@hidden>
- Date: Tue, 21 Aug 2012 18:01:17 +0200
That's perfect. Thank you very much. I have been dragging this inconvenience in my app for a long time now…
Jean
On 21 août 2012, at 17:43, Corbin Dunn wrote:
> Override:
>
> - (BOOL)needsPanelToBecomeKey
>
> and return NO. If you think about it...that is conceptually what you want. Also, the window could return YES from becomesKeyOnlyIfNeeded, and it should also work.
>
> -corbin
>
>
>
> On Aug 21, 2012, at 5:48 AM, Jean Suisse <email@hidden> wrote:
>
>> Hello,
>>
>> I have an NSPanel window that contains an NSTableView with the usual setup (NSPanel -> content view (NSView) -> NSScrollView -> NSTableView -> etc).
>> When the Panel does not have the focus, clicking on an item of the table view will first activate the panel. Then a second click will be required to select the item. This two-click selection is inconvenient.
>>
>> I have tried to answer yes to acceptsFirstMouse in the content view, the scroll view, and the table view without success. Anyone knows how to deal with this ?
>>
>> Best regards,
>> Jean
>>
>> Jean Suisse
>> Institut de Chimie Moléculaire de l’Université de Bourgogne
>> (ICMUB) — UMR 6302
>>
>> U.F.R. Sciences et Techniques, Bâtiment Mirande
>> Aile B, bureau 411
>> 9, avenue Alain Savary — B.P. 47870
>> 21078 DIJON CEDEX
>>
>> T: +333-8039-9037
>> F: +339-7223-9232
>> E: email@hidden
>>
>> http://www.icmub.fr/185-JEAN-SUISSE_?id=331
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> 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
>
_______________________________________________
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