FROM : Hamish Allan
DATE : Thu Apr 24 12:51:58 2008
On Wed, Apr 23, 2008 at 3:41 PM, Ewan Delanoy
<ewan.<email_removed>> wrote:
> The reason is, I know how to produce easily the "double-click" behaviour
> with Cocoa but not the (better) "click" behaviour
It's not really "single click" behaviour -- it's a classic
master-detail interface, i.e., the lower pane shows the detail of the
item *selected* (not necessarily clicked -- it should be
keyboard-navigable too) in the table.
It's all made particularly straightforward by using bindings
(http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Tasks/masterdetail.html),
though I would hesitate to recommend bindings programming to anyone
who hasn't understood (i.e. successfully implemented at least one
instance of) the data source approach fully.
> I indulged in making a new class called UneditableTableViewDelegate
Just implement the method tableViewSelectionDidChange: in your
delegate and call your updateLowerPartAfterSelectionInUpperPart: from
there.
Hamish
DATE : Thu Apr 24 12:51:58 2008
On Wed, Apr 23, 2008 at 3:41 PM, Ewan Delanoy
<ewan.<email_removed>> wrote:
> The reason is, I know how to produce easily the "double-click" behaviour
> with Cocoa but not the (better) "click" behaviour
It's not really "single click" behaviour -- it's a classic
master-detail interface, i.e., the lower pane shows the detail of the
item *selected* (not necessarily clicked -- it should be
keyboard-navigable too) in the table.
It's all made particularly straightforward by using bindings
(http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Tasks/masterdetail.html),
though I would hesitate to recommend bindings programming to anyone
who hasn't understood (i.e. successfully implemented at least one
instance of) the data source approach fully.
> I indulged in making a new class called UneditableTableViewDelegate
Just implement the method tableViewSelectionDidChange: in your
delegate and call your updateLowerPartAfterSelectionInUpperPart: from
there.
Hamish
| Related mails | Author | Date |
|---|---|---|
| Ewan Delanoy | Apr 23, 10:33 | |
| Ian Jackson | Apr 23, 11:22 | |
| Andy Lee | Apr 23, 14:06 | |
| Andy Lee | Apr 23, 14:13 | |
| Ewan Delanoy | Apr 23, 16:41 | |
| Keary Suska | Apr 23, 17:11 | |
| Hamish Allan | Apr 24, 12:51 |






Cocoa mail archive

