• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Uneditable NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Uneditable NSTableView (From: "Ewan Delanoy" <email@hidden>)

  • Prev by Date: Re: Resource Fork - is this a good use/the right thing to do?
  • Next by Date: Re: Resource Fork - is this a good use/the right thing to do?
  • Previous by thread: Re: Uneditable NSTableView
  • Next by thread: NSScanner question
  • Index(es):
    • Date
    • Thread