Skip to content

Commit 66f6d4f

Browse files
author
otxdev
committed
merging back from 64-bit branch
git-svn-id: http://otx.osxninja.com/builds/trunk@487 5968870d-8a1b-0410-8ef2-9208d525af3e
1 parent 4da554d commit 66f6d4f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+23573
-14178
lines changed

English.lproj/MainMenu.nib/classes.nib

Lines changed: 21 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

English.lproj/MainMenu.nib/designable.nib

Lines changed: 1972 additions & 2817 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

English.lproj/MainMenu.nib/info.nib

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
453 Bytes
Binary file not shown.

main.m

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,51 @@
11
/*
2-
main.m
2+
main.m
33
4-
This file is in the public domain.
4+
This file is in the public domain.
55
*/
66

7+
#import <Cocoa/Cocoa.h>
8+
79
#ifdef OTX_CLI
8-
#import "CLIController.h"
10+
#import "CLIController.h"
911
#else
10-
#import <AppKit/NSApplication.h>
12+
#import <AppKit/NSApplication.h>
1113
#endif
1214

13-
// ============================================================================
15+
BOOL gCancel = NO;
1416

1517
int main(
16-
int argc,
17-
char* argv[])
18+
int argc,
19+
char* argv[])
1820
{
19-
if (OS_IS_PRE_TIGER)
20-
{
21-
fprintf(stderr, "otx requires Mac OS X 10.4 or higher.\n");
22-
return -1;
23-
}
21+
if (OS_IS_PRE_TIGER)
22+
{
23+
fprintf(stderr, "otx requires Mac OS X 10.4 or higher.\n");
24+
return -1;
25+
}
2426

25-
int result = 1;
27+
int result = 1;
2628

2729
// OTX_CLI is defined in the CLI target settings. Much thanx to Slava Karpenko
2830
// and Mike Solomon for telling me about the -D flag.
2931
#ifdef OTX_CLI
30-
31-
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
32-
CLIController* controller =
33-
[[CLIController alloc] initWithArgs: argv count: argc];
34-
35-
if (controller)
36-
{
37-
[controller processFile];
38-
[controller release];
39-
40-
result = noErr;
41-
}
42-
else
43-
result = -1;
44-
45-
[pool release];
46-
32+
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
33+
CLIController* controller =
34+
[[CLIController alloc] initWithArgs: argv count: argc];
35+
36+
if (controller)
37+
{
38+
[controller processFile];
39+
[controller release];
40+
result = noErr;
41+
}
42+
else
43+
result = -1;
44+
45+
[pool release];
4746
#else
48-
49-
result = NSApplicationMain(argc, (const char**)argv);
50-
47+
result = NSApplicationMain(argc, (const char**)argv);
5148
#endif
5249

53-
return result;
50+
return result;
5451
}

otx.xcodeproj/project.pbxproj

Lines changed: 110 additions & 25 deletions
Large diffs are not rendered by default.

otx_Prefix.pch

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
/*
2-
otx_Prefix.pch
2+
otx_Prefix.pch
33

4-
This file is in the public domain.
4+
This file is in the public domain.
55
*/
66

7-
#ifndef NSAppKitVersionNumber10_4
8-
#define NSAppKitVersionNumber10_4 824
7+
#ifdef __OBJC__
8+
#import <Cocoa/Cocoa.h>
9+
extern BOOL gCancel;
910
#endif
1011

11-
#ifdef __OBJC__
12-
#import <Cocoa/Cocoa.h>
12+
#ifndef NSAppKitVersionNumber10_4
13+
#define NSAppKitVersionNumber10_4 824
1314
#endif
1415

15-
#define OS_IS_PRE_TIGER NSAppKitVersionNumber < NSAppKitVersionNumber10_4
16-
#define OS_IS_POST_TIGER floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_4
17-
#define OS_IS_TIGER (!OS_IS_PRE_TIGER) && (!OS_IS_POST_TIGER)
16+
#define OS_IS_PRE_TIGER NSAppKitVersionNumber < NSAppKitVersionNumber10_4
17+
#define OS_IS_POST_TIGER floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_4
18+
#define OS_IS_TIGER (!OS_IS_PRE_TIGER) && (!OS_IS_POST_TIGER)

0 commit comments

Comments
 (0)