Files
cappuccino/Tests/Manual/CPDocumentControllerTest/withNib/AppController.j
T

40 lines
1.2 KiB
Plaintext

/*
* AppController.j
* CappDoc
*
* Created by You on May 24, 2012.
* Copyright 2012, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
@import "Document.j"
@import "DocumentController.j"
@implementation AppController : CPObject
{
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
// This is called when the application is done loading.
var sharedDocController = [CPDocumentController sharedDocumentController];
var docController = [[DocumentController alloc] init];
var cpAlert = [CPAlert alertWithMessageText:@"Is this the shared instance? " + (sharedDocController == docController) defaultButton:@"OK" alternateButton:nil otherButton:nil informativeTextWithFormat:nil];
[cpAlert beginSheetModalForWindow:[[CPApplication sharedApplication] mainWindow]];
}
- (void)applicationWillFinishLaunching:(CPNotification)aNotification
{
// instantiate a subclass of DocumentController
//subclassedCPDocumentController = [[DocumentController alloc] init];
}
- (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.
}
@end