Skip to content

Instantly share code, notes, and snippets.

@ConnorD
Created May 21, 2011 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ConnorD/984798 to your computer and use it in GitHub Desktop.
Save ConnorD/984798 to your computer and use it in GitHub Desktop.
/*
* AppController.j
* MyCappApp
*
* Created by You on May 21, 2011.
* Copyright 2011, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
@implementation AppController : CPObject
{
CPWindow theWindow; //this "outlet" is connected automatically by the Cib
IBOutlet CPView aView;
}
- (IBAction)doSomething:(id)sender
{
}
- (IBAction)myAction:(id)sender {
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
// This is called when the application is done loading.
}
- (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 setFullBridge:YES];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment