mirror of https://github.com/stella-emu/stella.git
Finally fixed the annoying warning when building under OSX.
It was referring to Objective-C categories vs. subclasses. I'm really glad I don't have to know anything further about Objective-C :) git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3202 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
92fcba53a5
commit
5620c270bc
|
@ -64,7 +64,7 @@
|
|||
<key>NSMainNibFile</key>
|
||||
<string>SDLMain.nib</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
<string>SDLApplication</string>
|
||||
<key>«PROJECTNAMEASXML»</key>
|
||||
<string>SDL Cocoa App</string>
|
||||
</dict>
|
||||
|
|
|
@ -14,3 +14,9 @@
|
|||
+ (SDLMain *)sharedInstance;
|
||||
|
||||
@end
|
||||
|
||||
@interface SDLApplication : NSApplication {
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -79,11 +79,7 @@ static NSString *getApplicationName(void)
|
|||
#endif
|
||||
|
||||
// --------------------------------------------------------------------------------
|
||||
@interface NSApplication (SDLApplication)
|
||||
@end
|
||||
|
||||
// --------------------------------------------------------------------------------
|
||||
@implementation NSApplication (SDLApplication)
|
||||
@implementation SDLApplication
|
||||
/* Invoked from the Quit menu item */
|
||||
- (void)terminate:(id)sender
|
||||
{
|
||||
|
@ -91,6 +87,7 @@ static NSString *getApplicationName(void)
|
|||
SDL_Event event;
|
||||
event.type = SDL_QUIT;
|
||||
SDL_PushEvent(&event);
|
||||
[super terminate:sender];
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in New Issue