forked from rbartolome/xcode-cappuccino
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add xcode Specifications from cappuccino project
- update Project Templates to cappuccino version 0.7 - add INDEX_FILE Project variables to use with debug and release build configuration - add FileToExpand array to project template and FileToRename
- Loading branch information
Raphael Bartolome
committed
Jun 2, 2009
1 parent
e99fbe4
commit 32e0cdf
Showing
14 changed files
with
4,471 additions
and
174 deletions.
There are no files selected for viewing
28 changes: 21 additions & 7 deletions
28
Project Templates/Web/Cappuccino XIB based Application/AppController.j
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
// | ||
// «FILENAME» | ||
// «PROJECTNAME» | ||
// | ||
// Created by «FULLUSERNAME» on «DATE». | ||
// Copyright «ORGANIZATIONNAME» «YEAR». All rights reserved. | ||
// | ||
|
||
@import <Foundation/CPObject.j> | ||
@import <AppKit/CPCib.j> | ||
|
||
|
||
@implementation AppController : CPObject | ||
{ | ||
CPWindow _window; | ||
CPWindow theWindow; //this "outlet" is connected automatically by the Cib | ||
} | ||
|
||
- (void)applicationDidFinishLaunching:(CPNotification)aNotification | ||
{ | ||
var cib = [[CPCib alloc] initWithContentsOfURL:[[CPBundle mainBundle] pathForResource:@"MainMenu.cib"]]; | ||
|
||
[cib instantiateCibWithExternalNameTable:[CPDictionary dictionaryWithObject:self forKey:CPCibOwner]]; | ||
// This is called when the application is done loading. | ||
|
||
// var cib = [[CPCib alloc] initWithContentsOfURL:[[CPBundle mainBundle] pathForResource:@"MainMenu.cib"]]; | ||
// [cib instantiateCibWithExternalNameTable:[CPDictionary dictionaryWithObject:self forKey:CPCibOwner]]; | ||
} | ||
|
||
[_window setFrameOrigin:CGPointMake(0.0, 0.0)]; | ||
[_window orderFront:self]; | ||
- (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 |
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
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
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
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
Oops, something went wrong.