Revision: 5646
http://skim-app.svn.sourceforge.net/skim-app/?rev=5646&view=rev
Author: hofman
Date: 2009-09-03 21:20:23 +0000 (Thu, 03 Sep 2009)
Log Message:
-----------
don't run Carbon alert for incompatible system version, because the Dialog
Manager should not be available for 64-bits.
Modified Paths:
--------------
trunk/main.m
Modified: trunk/main.m
===================================================================
--- trunk/main.m 2009-09-03 21:10:28 UTC (rev 5645)
+++ trunk/main.m 2009-09-03 21:20:23 UTC (rev 5646)
@@ -9,7 +9,6 @@
//
#import <Cocoa/Cocoa.h>
-#import <Carbon/Carbon.h>
int main(int argc, char *argv[])
{
@@ -21,32 +20,7 @@
OSStatus err = Gestalt(gestaltSystemVersion, &version);
if (noErr != err || version < 0x00001050) {
- DialogRef alert;
-
- // pool required for localized strings
- NSAutoreleasePool *pool = [NSAutoreleasePool new];
-
- AlertStdCFStringAlertParamRec alertParamRec = {
- kStdCFStringAlertVersionOne,
- TRUE,
- FALSE,
- (CFStringRef)NSLocalizedString(@"Quit", @""),
- NULL, // cancel button text
- NULL, // other button text
- kAlertStdAlertOKButton,
- kAlertStdAlertCancelButton,
- kWindowDefaultPosition,
- 0
- };
-
- err = CreateStandardAlert(kAlertStopAlert,
(CFStringRef)NSLocalizedString(@"Unsupported System Version", @""),
(CFStringRef)NSLocalizedString(@"This version of Skim requires Mac OS X 10.5 or
greater to run.", @""), &alertParamRec, &alert);
- DialogItemIndex idx;
-
- if (noErr == err) {
- // this will dispose of the alert (not that a leak is a big deal
at this point)
- err = RunStandardAlert(alert, NULL, &idx);
- }
- [pool release];
+ NSLog(@"Incompatible version. Skim requires Mac OSX 10.5 or later.");
return err;
}
return NSApplicationMain(argc, (const char **) argv);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit