Changeset 675 for trunk/Cocoa/AntiRSI
- Timestamp:
- 02/04/17 17:56:51 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/AntiRSI/AntiRSI.m
r370 r675 23 23 #include <math.h> 24 24 #include <ApplicationServices/ApplicationServices.h> 25 26 // 10.5-only27 enum {28 NSWindowCollectionBehaviorDefault = 0,29 NSWindowCollectionBehaviorCanJoinAllSpaces = 1 << 0,30 NSWindowCollectionBehaviorMoveToActiveSpace = 1 << 131 };32 typedef unsigned NSWindowCollectionBehavior;33 @interface NSWindow (NSWindowCollectionBehavior)34 - (void)setCollectionBehavior:(NSWindowCollectionBehavior)behavior;35 @end36 25 37 26 extern CFTimeInterval CGSSecondsSinceLastInputEvent(unsigned long eventType); … … 685 674 int r = NSRunInformationalAlertPanel( 686 675 @"New Version", 687 [NSString stringWithFormat:@"A new version (%@) of AntiRSI is available; would you like to go to its Web site now?", latest_version],688 @"Goto Website", @"Cancel", nil );676 @"A new version (%@) of AntiRSI is available; would you like to go to its Web site now?", 677 @"Goto Website", @"Cancel", nil, latest_version); 689 678 if (r == NSOKButton) { 690 679 [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:sURL]];
Note:
See TracChangeset
for help on using the changeset viewer.