Changeset 675


Ignore:
Timestamp:
02/04/17 17:56:51 (7 years ago)
Author:
Nicholas Riley
Message:

AntiRSI.m: Fix format string issue and compilation on >10.4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/AntiRSI/AntiRSI.m

    r370 r675  
    2323#include <math.h>
    2424#include <ApplicationServices/ApplicationServices.h>
    25 
    26 // 10.5-only
    27 enum {
    28     NSWindowCollectionBehaviorDefault = 0,
    29     NSWindowCollectionBehaviorCanJoinAllSpaces = 1 << 0,
    30     NSWindowCollectionBehaviorMoveToActiveSpace = 1 << 1
    31 };
    32 typedef unsigned NSWindowCollectionBehavior;
    33 @interface NSWindow (NSWindowCollectionBehavior)
    34 - (void)setCollectionBehavior:(NSWindowCollectionBehavior)behavior;
    35 @end
    3625
    3726extern CFTimeInterval CGSSecondsSinceLastInputEvent(unsigned long eventType);
     
    685674        int r = NSRunInformationalAlertPanel(
    686675             @"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);
    689678        if (r == NSOKButton) {
    690679            [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:sURL]];
Note: See TracChangeset for help on using the changeset viewer.