• 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
Implementing a Slightly Unusual NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Implementing a Slightly Unusual NSTableView


  • Subject: Implementing a Slightly Unusual NSTableView
  • From: Peter Zegelin <email@hidden>
  • Date: Sat, 19 Apr 2008 20:05:58 +1000

I have a tableview representing the layers of a drawing application. The tableview has several columns of checkboxes, some status columns and an editable text column for the layer name. The rows of the tableview are selectable (multiple selection) so they can be reordered and cut, copied and pasted. I have everything except row reordering working fine ( and this isn't a problem - so far!).

However as things currently are, every time a checkbox is clicked on the row is selected as well, and the focus is shifted away from my drawing view to this tableview. What I would really like to happen is that if a user clicks on a checkbox then the row is *not* selected at all and only if they click elsewhere would the tableview select the row and get the focus. Even though the checkbox columns are quite narrow there is still quite a bit of space where the checkbox isn't affected and a couple of columns show only status info so could be used to select the row.

The problem is I'm pretty new to Cocoa and haven't clue where to start with this. Any suggestions how I might go about it would be much appreciated.

thanks!

Peter
_______________________________________________

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


  • Follow-Ups:
    • Re: Implementing a Slightly Unusual NSTableView
      • From: Graham Cox <email@hidden>
    • Re: Implementing a Slightly Unusual NSTableView
      • From: Jens Alfke <email@hidden>
  • Prev by Date: IKImageBrowserView spacing and contextual menus
  • Next by Date: Re: Capsule-Style Toolbar Controls
  • Previous by thread: Re: IKImageBrowserView spacing and contextual menus
  • Next by thread: Re: Implementing a Slightly Unusual NSTableView
  • Index(es):
    • Date
    • Thread