• 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
Intercepting Click in Background of Table View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Intercepting Click in Background of Table View


  • Subject: Intercepting Click in Background of Table View
  • From: Seth Willits <email@hidden>
  • Date: Thu, 7 Jul 2005 23:13:27 -0700

Is there a way to determine whether the user clicked on the background of a table view? I have an application where when the header of a column is selected, two buttons change to be context- sensitive (from row to column depending on which is selected - four buttons is just way too cluttered). The problem is, if there are now rows in the table, the only way to deselect the column is to command click the header which isn't very obvious at all.

So what I want to do is know when the user clicked on the background of the table view (in the blank content area) so I can then deselect the column (just like how it works if a row is selected). I can clearly intercept mouseDown by overriding it in a subclass, but that's too low level, but there's nothing higher than that I can see that would help me.

Any ideas?



--
Seth Willits

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Intercepting Click in Background of Table View
      • From: Scott Anguish <email@hidden>
    • Re: Intercepting Click in Background of Table View
      • From: Charilaos Skiadas <email@hidden>
  • Prev by Date: Re: [Cocoa-Java] WebView and HTML string how to ?
  • Next by Date: Re:Getting the color under the cursor
  • Previous by thread: Re: "Guided tour" of sample app (was Re: Smart Group Question)
  • Next by thread: Re: Intercepting Click in Background of Table View
  • Index(es):
    • Date
    • Thread