Skip to content

Instantly share code, notes, and snippets.

diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j
index c8debf4..e5452ee 100644
--- a/AppKit/CPApplication.j
+++ b/AppKit/CPApplication.j
@@ -1043,7 +1043,7 @@ var _CPAppBootstrapperActions = nil;
+ (void)actions
{
- return [@selector(bootstrapPlatform), @selector(loadDefaultTheme), @selector(loadMainCibFile)];
+ return [@selector(loadDefaultTheme)];//[@selector(bootstrapPlatform)];//[@selector(bootstrapPlatform), @selector(loadDefaultTheme), @selector(loadMainCibFile)];
diff --cc Objective-J/Preprocessor.js
index f261cb9,9f2855c..0000000
--- a/Objective-J/Preprocessor.js
+++ b/Objective-J/Preprocessor.js
@@@ -342,14 -371,28 +342,31 @@@ Preprocessor.prototype.implementation
token = tokens.skip_whitespace();
if (token == TOKEN_CLOSE_PARENTHESIS)
- objj_exception_throw(new objj_exception(OBJJParseException, this.error_message("*** Can't Have Empty Category Name for class \"" + class_name + "\".")));
+ throw new SyntaxError(this.error_message("*** Can't Have Empty Category Name for class \"" + class_name + "\"."));
diff --git a/Objective-J/CFBundle.js b/Objective-J/CFBundle.js
index 0eaec77..cd4bb71 100644
--- a/Objective-J/CFBundle.js
+++ b/Objective-J/CFBundle.js
@@ -41,7 +41,7 @@ CFBundle.bundleContainingPath = function(/*String*/ aPath)
while (aPath !== "/")
{
var bundle = CFBundlesForPaths[aPath];
-
+
diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j
index c8debf4..52b7c9a 100644
--- a/AppKit/CPApplication.j
+++ b/AppKit/CPApplication.j
@@ -1059,7 +1059,9 @@ var _CPAppBootstrapperActions = nil;
return;
}
- [CPApp run];
+ setTimeout(function(){
diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j
index c8debf4..4b9c3f3 100644
--- a/AppKit/CPApplication.j
+++ b/AppKit/CPApplication.j
@@ -307,7 +307,7 @@ CPRunContinuesResponse = -1002;
postNotificationName:CPApplicationDidFinishLaunchingNotification
object:self];
- [[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
+ //[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
diff --git a/AppKit/Platform/DOM/CPPlatformString.j b/AppKit/Platform/DOM/CPPlatformString.j
index 371e41a..bc6cf90 100644
--- a/AppKit/Platform/DOM/CPPlatformString.j
+++ b/AppKit/Platform/DOM/CPPlatformString.j
@@ -52,23 +52,23 @@ var DOMSpanElement = nil,
if (DOMIFrameElement)
return;
- DOMIFrameElement = document.createElement("iframe");
+ var iframe = document.createElement("iframe");
diff --git a/AppKit/Platform/DOM/CPPlatform.j b/AppKit/Platform/DOM/CPPlatform.j
index 47af4b1..60ac591 100644
--- a/AppKit/Platform/DOM/CPPlatform.j
+++ b/AppKit/Platform/DOM/CPPlatform.j
@@ -21,6 +21,7 @@
*/
CPPlatformDidClearBodyElementNotification = @"CPPlatformDidClearBodyElementNotification";
+CPPlatformWillClearBodyElementNotification = @"CPPlatformWillClearBodyElementNotification";
dustins
9:34
i'm having a little trouble, i'd like to start using the most up to date code, i just pulled from origin so it is fully up to date, but i'm getting an error when i try and run "rake" http://pastebin.com/m356449d7
hammerdr
9:35
you should be running "jake"
9:35 PMmandaris left the room (quit: Client Quit).
Me1000
9:35
/*
* AppController.j
* keyviewloop2
*
* Created by Ross Boucher on January 12, 2010.
* Copyright 2010, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
if (window.OBJJ_MAIN_FILE)
{
var addOnload = function(handler) {
if (window.addEventListener)
window.addEventListener("load", handler, false);
else if (window.attachEvent)
window.attachEvent("onload", handler);
}
var documentLoaded = NO;