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

Re: Intercepting Click in Background of Table View


  • Subject: Re: Intercepting Click in Background of Table View
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 8 Jul 2005 03:22:53 -0400


On Jul 8, 2005, at 2:28 AM, Charilaos Skiadas wrote:

On Jul 8, 2005, at 1:13 AM, Seth Willits wrote:


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?




Not sure of the details, but you could try and place a transparent view on top of the blank content area, have it be hidden when there are rows in the table, and have a click on it activate whatever you want. Assuming transparent views accepts mouse clicks, I have never tried it myself.


Oh, I also interpreted what Seth wanted differently.. you can have areas at the bottom of the table that aren't occupied by rows, but there can still be rows in the table.
_______________________________________________
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
References: 
 >Intercepting Click in Background of Table View (From: Seth Willits <email@hidden>)
 >Re: Intercepting Click in Background of Table View (From: Charilaos Skiadas <email@hidden>)

  • Prev by Date: Re: Intercepting Click in Background of Table View
  • Next by Date: Re: [Cocoa-Java] WebView and HTML string how to ?
  • Previous by thread: Re: Intercepting Click in Background of Table View
  • Next by thread: Re: Intercepting Click in Background of Table View
  • Index(es):
    • Date
    • Thread