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
23
headers/OGApplication.h
Normal file
23
headers/OGApplication.h
Normal 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]; \
|
||||
}
|
Reference in a new issue