Double clicks
Double clicks
- Subject: Double clicks
- From: Kyle Mandli <email@hidden>
- Date: Mon, 9 Jul 2001 10:38:50 -0500
I have been implementing some UI elements that require double clicking
as part of the interface but I cannot get the double clicks to work. I
tried to do it on a NSView and just use mouseDown and the event to see
the double clicks but that didn't work and I just worked my way around
it and attributed the problem to my code but now I have a double click
action on a outline view and that does not work either. Help please,
this seems like an easy problem but I can't seem to figure it out.
// OutlineView call where double action is set
[fileDrawerOutlineView
setDoubleAction:@selector(outlineViewDoubleClicked:)];
// Mouse down call inside a NSView, [theEvent clickCount] always = 1
-(void)mouseDown:(NSEvent*)theEvent
{
if([theEvent clickCount] == 1)
zoomFactor += .25;
else if([theEvent clickCount] == 2 && zoomFactor > 1)
zoomFactor -= .25;
}
Kyle