Reorganize so that SMApplication's implementation is by its interface.
This commit is contained in:
@@ -10,21 +10,12 @@
|
|||||||
- (void) setAppleMenu:(NSMenu *)menu;
|
- (void) setAppleMenu:(NSMenu *)menu;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
// Replacement NSApplication class.
|
||||||
|
// XXX: I can no longer remember the reason for this class... Clearly something to do with sendEvent:
|
||||||
@interface SMApplication : NSApplication
|
@interface SMApplication : NSApplication
|
||||||
- (void) fullscreen:(id)sender;
|
- (void) fullscreen:(id)sender;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface SMMain : NSObject
|
|
||||||
{
|
|
||||||
int m_iArgc;
|
|
||||||
char **m_pArgv;
|
|
||||||
}
|
|
||||||
- (id) initWithArgc:(int)argc argv:(char **)argv;
|
|
||||||
- (void) startGame:(id)sender;
|
|
||||||
- (NSApplicationTerminateReply) applicationShouldTerminate:(NSApplication *)sender;
|
|
||||||
@end
|
|
||||||
|
|
||||||
|
|
||||||
@implementation SMApplication
|
@implementation SMApplication
|
||||||
- (void)fullscreen:(id)sender
|
- (void)fullscreen:(id)sender
|
||||||
{
|
{
|
||||||
@@ -41,6 +32,16 @@
|
|||||||
@end
|
@end
|
||||||
|
|
||||||
// The main class of the application, the application's delegate.
|
// The main class of the application, the application's delegate.
|
||||||
|
@interface SMMain : NSObject
|
||||||
|
{
|
||||||
|
int m_iArgc;
|
||||||
|
char **m_pArgv;
|
||||||
|
}
|
||||||
|
- (id) initWithArgc:(int)argc argv:(char **)argv;
|
||||||
|
- (void) startGame:(id)sender;
|
||||||
|
- (NSApplicationTerminateReply) applicationShouldTerminate:(NSApplication *)sender;
|
||||||
|
@end
|
||||||
|
|
||||||
@implementation SMMain
|
@implementation SMMain
|
||||||
|
|
||||||
- (id) initWithArgc:(int)argc argv:(char **)argv
|
- (id) initWithArgc:(int)argc argv:(char **)argv
|
||||||
|
|||||||
Reference in New Issue
Block a user