mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-15 08:00:56 +00:00
Update resources for Application project so that it includes a window, a connection to the window and a slightly improved AppController
This commit is contained in:
parent
4405dcc8c4
commit
6c0063600d
5 changed files with 8 additions and 3 deletions
|
@ -17,22 +17,26 @@
|
||||||
|
|
||||||
@interface AppController : NSObject
|
@interface AppController : NSObject
|
||||||
{
|
{
|
||||||
|
IBOutlet NSWindow *_window;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Class methods...
|
||||||
+ (void) initialize;
|
+ (void) initialize;
|
||||||
|
|
||||||
|
// Initialization
|
||||||
- (id) init;
|
- (id) init;
|
||||||
- (void) dealloc;
|
- (void) dealloc;
|
||||||
|
|
||||||
- (void) awakeFromNib;
|
- (void) awakeFromNib;
|
||||||
|
|
||||||
|
// Notification methods...
|
||||||
- (void) applicationDidFinishLaunching: (NSNotification *)aNotif;
|
- (void) applicationDidFinishLaunching: (NSNotification *)aNotif;
|
||||||
- (BOOL) applicationShouldTerminate: (id)sender;
|
- (BOOL) applicationShouldTerminate: (id)sender;
|
||||||
- (void) applicationWillTerminate: (NSNotification *)aNotif;
|
- (void) applicationWillTerminate: (NSNotification *)aNotif;
|
||||||
- (BOOL) application: (NSApplication *)application
|
- (BOOL) application: (NSApplication *)application
|
||||||
openFile: (NSString *)fileName;
|
openFile: (NSString *)fileName;
|
||||||
|
|
||||||
- (void) showPrefPanel: (id)sender;
|
// Actions...
|
||||||
|
- (IBAction) showPrefPanel: (id)sender;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) showPrefPanel: (id)sender
|
- (IBAction) showPrefPanel: (id)sender
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
"showPrefPanel:"
|
"showPrefPanel:"
|
||||||
);
|
);
|
||||||
Outlets = (
|
Outlets = (
|
||||||
|
"_window"
|
||||||
);
|
);
|
||||||
Super = NSObject;
|
Super = NSObject;
|
||||||
};
|
};
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue