support for SL

This commit is contained in:
Laurent Sansonetti
2012-05-05 23:30:14 +02:00
parent 10f1cc596b
commit 7b0331ab89
4 changed files with 9 additions and 3 deletions

View File

@@ -268,6 +268,7 @@
INFOPLIST_FILE = "RubyMotion Installer/RubyMotion Installer-Info.plist";
MACOSX_DEPLOYMENT_TARGET = 10.6;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx10.6;
WRAPPER_EXTENSION = app;
};
name = Debug;
@@ -280,6 +281,7 @@
INFOPLIST_FILE = "RubyMotion Installer/RubyMotion Installer-Info.plist";
MACOSX_DEPLOYMENT_TARGET = 10.6;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx10.6;
WRAPPER_EXTENSION = app;
};
name = Release;
@@ -303,6 +305,7 @@
4DAE74EB152A0F5800751094 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};

View File

@@ -8,7 +8,7 @@
#import <Cocoa/Cocoa.h>
@interface RMMainWindowController : NSWindowController <NSURLDownloadDelegate>
@interface RMMainWindowController : NSWindowController
{
IBOutlet NSView *view1, *view2, *view3, *view4, *view5;
IBOutlet NSButton *seeLicenseButton;

View File

@@ -239,7 +239,10 @@ DoneWorking:
[sender setEnabled:NO];
[licenseKeyTextField setEnabled:NO];
[NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *resp, NSData *data, NSError *error) {
dispatch_async(dispatch_get_main_queue(), ^{
NSError *error = nil;
NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:&error];
[sender setEnabled:YES];
[licenseKeyTextField setEnabled:YES];
@@ -274,7 +277,7 @@ DoneWorking:
[[NSAlert alertWithMessageText:@"License Key Validation Error" defaultButton:@"Okay" alternateButton:@"" otherButton:@"" informativeTextWithFormat:error_msg] runModal];
[self licenseKeyInvalid];
}
}];
});
return;
}