This repository has been archived on 2025-06-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ObjGUI.old/gtk/OGApplication.m
2011-12-27 23:38:07 +01:00

36 lines
635 B
Objective-C

#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