• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: acceptsFirstMouse with NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: acceptsFirstMouse with NSTableView


  • Subject: Re: acceptsFirstMouse with NSTableView
  • From: Ron Wagner <email@hidden>
  • Date: Tue, 2 Sep 2008 14:52:08 -0400


On Sep 2, 2008, at 11:45 AM, Corbin Dunn wrote:


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


Thanks Corbin, that did the trick.

BTW, the Finder is an example of an Apple application which does just this. The Apple Human Interface Guidelines do cover click-through, and in my usage it is not violating the guidelines.

Ron
_______________________________________________

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


References: 
 >acceptsFirstMouse with NSTableView (From: Ron Wagner <email@hidden>)
 >Re: acceptsFirstMouse with NSTableView (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Debugging NSWindow disappearances
  • Next by Date: Adding PDFPage to PDFDocument crashes
  • Previous by thread: Re: acceptsFirstMouse with NSTableView
  • Next by thread: NSDateFormatter and Display Value bindings
  • Index(es):
    • Date
    • Thread