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/headers/OGApplication.h
2011-12-27 23:38:07 +01:00

23 lines
410 B
Objective-C

#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]; \
}