Re: Uneditable NSTableView
Re: Uneditable NSTableView
- Subject: Re: Uneditable NSTableView
- From: "Hamish Allan" <email@hidden>
- Date: Thu, 24 Apr 2008 11:51:58 +0100
On Wed, Apr 23, 2008 at 3:41 PM, Ewan Delanoy
<email@hidden> 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden