Well, then you just need to override: - (BOOL)needsPanelToBecomeKey
in the NSTableView (subclass) and return NO. More info here : https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/nsview_Class/Reference/NSView.html This should do the trick. (It worked for me) Cheers 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 On 21 août 2012, at 18:02, Kyle Sluder wrote: > On Aug 21, 2012, at 8:43 AM, Corbin Dunn <corb...@apple.com> 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. > > I don't know what Jean Suisse needs, but we've been trying to achieve a very > similar goal: clicking on a table view in a non-key window should cause the > selection to change *and* should cause that window to become key (with the > table view as first responder). > > Yes, we understand this is a departure from standard behavior. But this is > the behavior we desire. (The table view lives in an inspector window and > shows a fair bit of data, and users expect to be able to navigate it with the > keyboard.) > > Unfortunately, the only thing we've done that seems to work is to override > -acceptsFirstMouse: to call [self.window makeKeyAndOrderFront:] before > returning YES. This feels incredibly hacky. Is there no other way? > > --Kyle Sluder _______________________________________________ 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