FROM : Jens Alfke
DATE : Sat Apr 19 17:29:01 2008
On 19 Apr '08, at 3:05 AM, Peter Zegelin wrote:
> However as things currently are, every time a checkbox is clicked on
> the row is selected as well, and the focus is shifted away from my
> drawing view to this tableview. What I would really like to happen
> is that if a user clicks on a checkbox then the row is *not*
> selected at all
I know what you mean … I had to implement this in the past, and it was
a real pain (well, actually it was a real pain for the original
implementor of the NSTableView subclass I swiped. But that source
code's not public.)
I seem to recall that in 10.5 there is new API, either in NSTableView
or NSActionCell, that makes this easy to do; but I just looked through
both headers and can't find it. Does anyone else remember?
—Jens
DATE : Sat Apr 19 17:29:01 2008
On 19 Apr '08, at 3:05 AM, Peter Zegelin wrote:
> However as things currently are, every time a checkbox is clicked on
> the row is selected as well, and the focus is shifted away from my
> drawing view to this tableview. What I would really like to happen
> is that if a user clicks on a checkbox then the row is *not*
> selected at all
I know what you mean … I had to implement this in the past, and it was
a real pain (well, actually it was a real pain for the original
implementor of the NSTableView subclass I swiped. But that source
code's not public.)
I seem to recall that in 10.5 there is new API, either in NSTableView
or NSActionCell, that makes this easy to do; but I just looked through
both headers and can't find it. Does anyone else remember?
—Jens
| Related mails | Author | Date |
|---|---|---|
| Peter Zegelin | Apr 19, 12:05 | |
| Jens Alfke | Apr 19, 17:29 | |
| Graham Cox | Apr 20, 03:04 | |
| Peter Zegelin | Apr 20, 09:06 | |
| Graham Cox | Apr 20, 11:28 | |
| Peter Zegelin | Apr 20, 12:51 | |
| Graham Cox | Apr 20, 16:36 | |
| Peter Zegelin | Apr 21, 12:16 | |
| Corbin Dunn | Apr 21, 19:08 |






Cocoa mail archive

