• 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
return NO in tableViewSelectionDidChange: disables button cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

return NO in tableViewSelectionDidChange: disables button cell


  • Subject: return NO in tableViewSelectionDidChange: disables button cell
  • From: Michael Hanna <email@hidden>
  • Date: Sat, 08 Oct 2011 23:10:10 -0400

On Mac OS X 10.6.8, in an NSTableView I have a column that contains
nsbuttoncell class. Row selection isn't useful in my application but doing:

- (BOOL)tableView:(NSTableView *)tableView shouldSelectRow:(NSInteger)row
{
  return NO;
}

means that there is no response whenever I click on the button cell(it
doesn't fire).

How do I get that button cell to send it's action and have no row selection
in the table view at the same time? I'm sure there is a way to do this.

Michael
_______________________________________________

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: return NO in tableViewSelectionDidChange: disables button cell
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: dataWithBytesNoCopy:length:freeWhenDone
  • Next by Date: Re: return NO in tableViewSelectionDidChange: disables button cell
  • Previous by thread: Re: dataWithBytesNoCopy:length:freeWhenDone
  • Next by thread: Re: return NO in tableViewSelectionDidChange: disables button cell
  • Index(es):
    • Date
    • Thread