Permalink
Browse files

Replace Carbon button pressed API with Cocoa equivalent.

  • Loading branch information...
1 parent e740f2d commit 74577723f53b87ec34ad5f0fa45c4976ae895a9b @nriley committed Nov 2, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 Source/PSVolumeController.m
@@ -110,8 +110,7 @@ - (IBAction)volumeSet:(NSSlider *)sender;
// On a quick click, the event may be a mouse down but the mouse button is no longer down.
if (!(eventMask & (NSLeftMouseDownMask | NSRightMouseDownMask | NSOtherMouseDownMask)))
return;
- // 10.6+: use [NSEvent pressedMouseButtons] instead
- if (GetCurrentButtonState() == 0)
+ if ([NSEvent pressedMouseButtons] == 0)
[menu cancelTracking];
}

0 comments on commit 7457772

Please sign in to comment.