source: releases/AntiRSI/1.4njr4/AntiRSIButton.m@ 543

Last change on this file since 543 was 369, checked in by Nicholas Riley, 17 years ago

AntiRSI.[hm]: Spelling/grammar fixes. Show break window in all Spaces on Leopard. Save/restore frontmost app when "Keep AntiRSI in front during breaks" is selected.

AntiRSI.xcodeproj: Minor changes.

AntiRSIButton.[hm]: Non-activating button.

CTGradient.m: Restructured some code so Leopard's GCC doesn't complain.

Info.plist, InfoPlist.strings: Updated for 1.4njr4.

MainMenu.nib: Change validation to 10.4.

File size: 444 bytes
Line 
1//
2// AntiRSIButton.m
3// AntiRSI
4//
5// Created by Nicholas Riley on 12/7/07.
6// Copyright 2007 Nicholas Riley. All rights reserved.
7//
8
9#import "AntiRSIButton.h"
10
11
12@implementation AntiRSIButton
13
14// prevents AntiRSI activation on mouse down
15- (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent *)theEvent
16{
17 return YES;
18}
19
20- (void)mouseDown:(NSEvent *)theEvent;
21{
22 [NSApp preventWindowOrdering];
23 [super mouseDown: theEvent];
24}
25
26@end
Note: See TracBrowser for help on using the repository browser.