Initial import.

This commit is contained in:
Jonathan Schleifer 2011-12-27 22:09:33 +01:00
commit b5f40d159e
16 changed files with 489 additions and 0 deletions

23
OGApplication.h Normal file
View file

@ -0,0 +1,23 @@
#include <gtk/gtk.h>
#import <ObjFW/ObjFW.h>
@protocol OGApplicationDelegate <OFObject>
- (void)applicationDidFinishLaunching;
@optional
- (void)applicationWillTerminate;
@end
@interface OGApplication: OFObject <OFApplicationDelegate>
{
id <OFApplicationDelegate> delegate;
}
+ (void)quit;
@end
#define OG_APPLICATION_DELEGATE(cls) \
Class \
og_application_delegate() { \
return [cls class]; \
}