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 <jean.li...@gmail.com> 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: jean.sui...@u-bourgogne.fr
>> 
>> http://www.icmub.fr/185-JEAN-SUISSE_?id=331
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/corbind%40apple.com
>> 
>> This email sent to corb...@apple.com
> 


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to