10 changes: 5 additions & 5 deletions src/osxlaunch/client.m
Expand Up @@ -64,10 +64,10 @@ - (NSString *)stringByReplacingRange:(NSRange)aRange with:(NSString *)aString;
@end
#endif

@interface SDLApplication : NSApplication
@interface TWSDLApplication : NSApplication
@end

@implementation SDLApplication
@implementation TWSDLApplication
/* Invoked from the Quit menu item */
- (void)terminate:(id)sender
{
Expand Down Expand Up @@ -193,7 +193,7 @@ static void CustomApplicationMain (int argc, char **argv)
SDLMain *sdlMain;

/* Ensure the application object is initialised */
[SDLApplication sharedApplication];
[TWSDLApplication sharedApplication];

#ifdef SDL_USE_CPS
{
Expand All @@ -202,7 +202,7 @@ static void CustomApplicationMain (int argc, char **argv)
if (!CPSGetCurrentProcess(&PSN))
if (!CPSEnableForegroundOperation(&PSN,0x03,0x3C,0x2C,0x1103))
if (!CPSSetFrontProcess(&PSN))
[SDLApplication sharedApplication];
[TWSDLApplication sharedApplication];
}
#endif /* SDL_USE_CPS */

Expand Down Expand Up @@ -362,7 +362,7 @@ int main (int argc, char **argv)
}

#if SDL_USE_NIB_FILE
[SDLApplication poseAsClass:[NSApplication class]];
[TWSDLApplication poseAsClass:[NSApplication class]];
NSApplicationMain (argc, argv);
#else
CustomApplicationMain (argc, argv);
Expand Down