On Wed, Apr 23, 2008 at 3:41 PM, Ewan Delanoy
<[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to