Created
November 17, 2009 08:14
-
-
Save tolmasky/236770 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* AppController.j | |
* takeTwo | |
* | |
* Created by Stefan Wallström on November 17, 2009. | |
* Copyright 2009, 280 North, Inc. All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> | |
@implementation AppController : CPObject | |
{ | |
CPWindow theWindow; //this "outlet" is connected automatically by the Cib | |
} | |
- (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 | |
@implementation CPWindow (x) | |
- (void)saveDocument:(id)aSender | |
{ | |
alert("hello"); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment