May 4, 2004

Bloody, but not beaten

I'm trying to do the click-hold back/forward toolbar buttons, but I can't get cocoa to do what I want. If I make a custom NSButton subclass, I can't use the click tracking of the standard button because it eats mouse ups so I can't clear my click-hold timer. I can't override the cell because the default button cell impl doesn't call stopMouseTracking (resulting in the same problem).

Any cocoa gurus have some sample code for click-hold context menus on buttons? It would be greatly appreciated, this is our most requested feature by orders of magnitude.

Posted by pinkerton at May 4, 2004 1:14 AM