mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 00:22:58 +00:00
Add commented-out code to capp gen NibApplication template. The technique itself is easy to forget and not obvious to newcomers. It is included in the standard capp gen application template and added here for completeness.
36 lines
918 B
Plaintext
36 lines
918 B
Plaintext
/*
|
|
* AppController.j
|
|
* __project.name__
|
|
*
|
|
* Created by __user.name__ on __project.date__.
|
|
* Copyright __project.year__, __organization.name__ All rights reserved.
|
|
*/
|
|
|
|
@import <Foundation/Foundation.j>
|
|
@import <AppKit/AppKit.j>
|
|
|
|
|
|
@implementation AppController : CPObject
|
|
{
|
|
@outlet CPWindow theWindow;
|
|
}
|
|
|
|
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
|
|
{
|
|
// This is called when the application is done loading.
|
|
// Uncomment the following line to hide the standard menu bar.
|
|
// [CPMenu setMenuBarVisible:NO];
|
|
}
|
|
|
|
- (void)awakeFromCib
|
|
{
|
|
// This is called when the cib is done loading.
|
|
// You can implement this method on any object instantiated from a Cib.
|
|
// It's a useful hook for setting up current UI values, and other things.
|
|
|
|
// In this case, we want the window from Cib to become our full browser window
|
|
[theWindow setFullPlatformWindow:YES];
|
|
}
|
|
|
|
@end
|