On Sep 1, 2008, at 8:41 PM, Ron Wagner wrote:

I am trying to get an NSTableView to change it's selection when clicking on one if it's cells when it's window is not active. I have subclassed NSTableView, overridden acceptsFirstMouse: and return YES unconditionally, and verified that it is getting called. Can't seem to get it to change behavior. Still takes once click to activate the window and a second click to select the clicked on cell. What is the trick to getting this to work?

I've googled for the answer and found a few other people asking, but no answers.

Override -needsPanelToBecomeKey and return NO.

However, allowing one to click through this way is sort of going against the grain for what many OS X applications do.

corbin
_______________________________________________

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

This email sent to [EMAIL PROTECTED]

Reply via email to