Skip navigation.
 
mlRe: Uneditable NSTableView
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

Related mailsAuthorDate
mlUneditable NSTableView Ewan Delanoy Apr 23, 10:33
mlRe: Uneditable NSTableView Ian Jackson Apr 23, 11:22
mlRe: Uneditable NSTableView Andy Lee Apr 23, 14:06
mlRe: Uneditable NSTableView Andy Lee Apr 23, 14:13
mlRe: Uneditable NSTableView Ewan Delanoy Apr 23, 16:41
mlRe: Uneditable NSTableView Keary Suska Apr 23, 17:11
mlRe: Uneditable NSTableView Hamish Allan Apr 24, 12:51