• 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
How to discover switching between NSTableViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to discover switching between NSTableViews


  • Subject: How to discover switching between NSTableViews
  • From: Rob In der Maur <email@hidden>
  • Date: Fri, 9 May 2003 15:13:52 +0200

Ok, this might be too obvious, but imagine a main window with two NSTableViews and one 'utility window' that will get updated based on the selection in either one of the table views.
I've programmed it such that a notification is sent to the utility window based when you change a selection in either one of the tables (using the selectionDidChange delegate). But how to trigger that you simply switch focus with the mouse between the two tables (without actually changing the current selection in either one of them). Simply stated, I just need to figure out when one of these NSTableView has gotten focus.

I thought becomeFirstResponder but that this mean I have to subclass the NSTableView class? And I thought about catching the MouseDown event but that seems like a bit of overhead...

cheers,

- Rob In der Maur
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Document proxy icon
  • Next by Date: Re: File not closing
  • Previous by thread: Re: Document proxy icon
  • Next by thread: NSComboBoxCell auto completion
  • Index(es):
    • Date
    • Thread