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

Re: Trouble with NSButtonCell


  • Subject: Re: Trouble with NSButtonCell
  • From: Reinhard Segeler <email@hidden>
  • Date: Thu, 3 Sep 2009 13:33:36 +0200

Don't know anything about the toolkit you're using, but I would use setAction: for single click and setDoubleAction: for double click,...
Hope this helps.


Reinhard

Am 03.09.2009 um 05:41 schrieb Dave DeLong:

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

_______________________________________________

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: Dave DeLong <email@hidden>
References: 
 >Trouble with NSButtonCell (From: Dave DeLong <email@hidden>)

  • Prev by Date: Fonts that are always there
  • Next by Date: Re: Core Data dog-slow when using first time after boot
  • Previous by thread: Trouble with NSButtonCell
  • Next by thread: Re: Trouble with NSButtonCell
  • Index(es):
    • Date
    • Thread