mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-23 04:20:24 +08:00
support for SL
This commit is contained in:
@@ -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 */
|
||||
};
|
||||
|
||||
Binary file not shown.
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user