Make it possible to have implementations in different toolkits.
Also, make it possible to share the headers.
This commit is contained in:
parent
b5f40d159e
commit
73e7da5fb7
16 changed files with 3 additions and 3 deletions
|
@ -1,36 +0,0 @@
|
|||
#import "OGApplication.h"
|
||||
|
||||
OF_APPLICATION_DELEGATE(OGApplication)
|
||||
|
||||
extern Class og_application_delegate(void);
|
||||
|
||||
@implementation OGApplication
|
||||
+ (void)quit
|
||||
{
|
||||
gtk_main_quit();
|
||||
}
|
||||
|
||||
- (void)applicationDidFinishLaunching
|
||||
{
|
||||
OFAutoreleasePool *pool;
|
||||
int *argc;
|
||||
char ***argv;
|
||||
|
||||
delegate = [[og_application_delegate() alloc] init];
|
||||
|
||||
[[OFApplication sharedApplication] getArgumentCount: &argc
|
||||
andArgumentValues: &argv];
|
||||
gtk_init(argc, argv);
|
||||
|
||||
pool = [OFAutoreleasePool new];
|
||||
[delegate applicationDidFinishLaunching];
|
||||
[pool release];
|
||||
|
||||
gtk_main();
|
||||
}
|
||||
|
||||
- (void)applicationWillTerminate
|
||||
{
|
||||
[delegate applicationWillTerminate];
|
||||
}
|
||||
@end
|
Reference in a new issue