• 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
Double clicks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Syntax Highlighting
  • Next by Date: how can one make applications behave like the clock?
  • Previous by thread: Re: Syntax Highlighting
  • Next by thread: how can one make applications behave like the clock?
  • Index(es):
    • Date
    • Thread