RosettaCodeData/Task/Simple-windowed-application/Objective-C/simple-windowed-application...

14 lines
357 B
Objective-C

#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
@interface ClickMe : NSWindow
{
NSButton *_button;
NSTextField *_text;
int _counter;
}
- (void)applicationDidFinishLaunching: (NSNotification *)notification;
- (BOOL)applicationShouldTerminateAfterLastWindowClosed: (NSNotification *)notification;
- (void)advanceCounter: (id)sender;
@end