Skip to content

Commit

Permalink
- add xcode Specifications from cappuccino project
Browse files Browse the repository at this point in the history
- 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
Show file tree
Hide file tree
Showing 14 changed files with 4,471 additions and 174 deletions.
@@ -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
Expand Up @@ -4,5 +4,13 @@
<dict>
<key>Description</key>
<string>This template provides a starting point for an cappuccino xib based application.</string>
<key>FilesToMacroExpand</key>
<array>
<string>AppController.j</string>
<string>main.j</string>
<string>index.html</string>
<string>index-debug.html</string>
<string>Info.plist</string>
</array>
</dict>
</plist>
Expand Up @@ -140,7 +140,7 @@
YES,
);
argumentStrings = (
"\"$(PROJECT_DIR)\"/index.html",
"\"$(PROJECT_DIR)\"/\"$(INDEX_FILE)\"",
);
autoAttachOnCrash = 1;
breakpointsEnabled = 0;
Expand Down Expand Up @@ -210,7 +210,7 @@
YES,
);
argumentStrings = (
"\"$(PROJECT_DIR)\"/index.html",
"\"$(PROJECT_DIR)\"/\"$(INDEX_FILE)\"",
);
autoAttachOnCrash = 1;
breakpointsEnabled = 0;
Expand Down
Expand Up @@ -27,6 +27,7 @@
64200A4B0FD4250F005D41CE /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
64200A4C0FD4250F005D41CE /* index.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = index.html; sourceTree = "<group>"; };
64200A4D0FD4250F005D41CE /* AppController.j */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.objj; path = AppController.j; sourceTree = "<group>"; };
64B168F30FD4E529001197CA /* index-debug.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = "index-debug.html"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXGroup section */
Expand Down Expand Up @@ -62,6 +63,7 @@
64200A4A0FD4250F005D41CE /* main.j */,
64200A4B0FD4250F005D41CE /* Info.plist */,
64200A4C0FD4250F005D41CE /* index.html */,
64B168F30FD4E529001197CA /* index-debug.html */,
);
name = Others;
sourceTree = "<group>";
Expand Down Expand Up @@ -104,6 +106,7 @@
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = YES;
INDEX_FILE = index.html;
};
name = Release;
};
Expand All @@ -113,17 +116,37 @@
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_ENABLE_FIX_AND_CONTINUE = NO;
PRODUCT_NAME = "«PROJECTNAME»";
PRODUCT_NAME = Untitled;
ZERO_LINK = NO;
};
name = Release;
};
64A306A10FD4E183000D6AD7 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = YES;
INDEX_FILE = "index-debug.html";
};
name = Debug;
};
64A306A20FD4E183000D6AD7 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_ENABLE_FIX_AND_CONTINUE = NO;
PRODUCT_NAME = Untitled;
ZERO_LINK = NO;
};
name = Debug;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
64200A3F0FD424DD005D41CE /* Build configuration list for PBXProject "Cappuccino" */ = {
isa = XCConfigurationList;
buildConfigurations = (
64A306A10FD4E183000D6AD7 /* Debug */,
64200A3E0FD424DD005D41CE /* Release */,
);
defaultConfigurationIsVisible = 0;
Expand All @@ -132,6 +155,7 @@
64200DCB0FD425B7005D41CE /* Build configuration list for PBXAggregateTarget "«PROJECTNAME»" */ = {
isa = XCConfigurationList;
buildConfigurations = (
64A306A20FD4E183000D6AD7 /* Debug */,
64200DBE0FD42578005D41CE /* Release */,
);
defaultConfigurationIsVisible = 0;
Expand Down
Expand Up @@ -4,9 +4,11 @@
<dict>
<key>CPApplicationDelegateClass</key>
<string>AppController</string>
<key>CPBundleName</key>
<string>NibApp</string>
<key>CPBundleName </key>
<string>«PROJECTNAME»</string>
<key>CPPrincipalClass</key>
<string>CPApplication</string>
<key>Main cib file base name</key>
<string>MainMenu.cib</string>
</dict>
</plist>

0 comments on commit 32e0cdf

Please sign in to comment.