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 protected]> 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 protected]
> 
> http://www.icmub.fr/185-JEAN-SUISSE_?id=331
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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 [email protected]


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to