• 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
Trouble with NSButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble with NSButtonCell


  • Subject: Trouble with NSButtonCell
  • From: Dave DeLong <email@hidden>
  • Date: Wed, 02 Sep 2009 21:41:02 -0600

Hi everyone,

I'm using Brandon's excellent BWToolkit in a project of mine right now. I'm specifically using the BWTransparentTableView and BWTransparentCheckBoxCell classes. I'd like to customize the CheckBoxCell to fulfill the following requirements:

1. Only invoke the target's action when the user single-clicks the actual checkbox.
2. Invoke the target's action when the user double-clicks anywhere in the cell.


I've tried subclassing BWTransparentCheckBoxCell and implementing stopTracking:at:inView:mouseIsUp: to invoke the target's action appropriately, but this method is never getting executed. I've tried implementing the tableView's delegate method (tableView:shouldTrackCell:...), to no effect. I've toyed with the possibility of implementing a custom trackMouse:inRect:ofView:untilMouseUp:, but that seems hopelessly complex.

Any ideas on why my tracking method isn't getting called, or a better approach I could be taking to this?

Thanks!

Dave DeLong
_______________________________________________

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: Trouble with NSButtonCell
      • From: Reinhard Segeler <email@hidden>
  • Prev by Date: Re: drawing my image in snow leopard
  • Next by Date: Re: NSServices
  • Previous by thread: FW: Image Problem
  • Next by thread: Re: Trouble with NSButtonCell
  • Index(es):
    • Date
    • Thread