Browse Source

Removing Context Help!

v1.2.1
Abhishek Banthia 9 years ago
parent
commit
e63b03e203
  1. BIN
      Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate
  2. 1
      Clocker/BackgroundView.m
  3. 1
      Clocker/PanelController.h
  4. 25
      Clocker/PanelController.m

BIN
Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate generated

Binary file not shown.

1
Clocker/BackgroundView.m

@ -118,6 +118,7 @@
PanelController *controller = delegate.panelController;
[controller showOptions:NO];
[controller removeContextHelpForSlider];
}
-(void)updateTrackingAreas

1
Clocker/PanelController.h

@ -72,5 +72,6 @@
- (void)closePanel;
- (void)updateDefaultPreferences;
- (void)showOptions:(BOOL)value;
- (void)removeContextHelpForSlider;
@end

25
Clocker/PanelController.m

@ -580,6 +580,31 @@ NSString *const CLTimezoneCellViewIdentifier = @"timeZoneCell";
[self.mainTableview reloadData];
}
- (void)removeContextHelpForSlider
{
NSEvent *newEvent = [NSEvent mouseEventWithType:NSLeftMouseDown
location:self.window.mouseLocationOutsideOfEventStream
modifierFlags:0
timestamp:0
windowNumber:self.window.windowNumber
context:self.window.graphicsContext
eventNumber:0
clickCount:1
pressure:0];
[NSApp postEvent:newEvent atStart:NO];
newEvent = [NSEvent mouseEventWithType:NSLeftMouseUp
location:self.window.mouseLocationOutsideOfEventStream
modifierFlags:0
timestamp:0
windowNumber:self.window.windowNumber
context:self.window.graphicsContext
eventNumber:0
clickCount:1
pressure:0];
[NSApp postEvent:newEvent atStart:NO];
}
- (NSString *)getWeekdayFromInteger:(NSInteger)weekdayInteger
{
if (weekdayInteger > 7) {

Loading…
Cancel
Save