• 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: Unselectable NSTableView with selectable cell controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unselectable NSTableView with selectable cell controls


  • Subject: Re: Unselectable NSTableView with selectable cell controls
  • From: Fritz Anderson <email@hidden>
  • Date: Sun, 24 Jun 2007 15:45:00 -0500

On 22 Jun 2007, at 9:04 PM, Glen Low wrote:

I'm trying to achieve a UI like the Address Book edit screen or the iCal drawer screen -- an arbitrary list of keys and values, where the values can be edited. To that end, I've created an NSTableView with a window-colored background, no column headers or grid lines or scroll bars. The data cell is a NSSegmentedCell. It all works fine, except that when I click on a row, it appears selected, since after all it's just a table view.

How do I suppress the row selection UI? If I handle the tableView:shouldSelectRow: delegate method and return NO to prevent any selection from happening, the cell controls become unclickable.

You're aware, incidentally, that that's not how Apple does it? It's a massively-hooked-into NSTextView.


If you can get the sample code for session 424 of WWDC 2003, it will show how to do this.

(Independently disclosed at <http://forums.macnn.com/79/developer- center/222767/nstextarea-with-subview-like-address-book/>, and on this list (search in www.cocoabuilder.com for ' "Address Book" NSTextView ').

But you may be able to work out an NSTableView solution. Good luck!

(Related: <http://www.stepwise.com/Articles/Technical/ 2003-12-20.01.html>.)

	— F


_______________________________________________

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: 
 >Unselectable NSTableView with selectable cell controls (From: Glen Low <email@hidden>)

  • Prev by Date: How to render 8-bit bitmap image representation?
  • Next by Date: Re: ObjC 3D engine
  • Previous by thread: Re: Unselectable NSTableView with selectable cell controls
  • Next by thread: Super-sized NSDrawer
  • Index(es):
    • Date
    • Thread