Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit ce975aa9abe987f759e549b262ecb8afe4bc4d59 @parmanoir committed Dec 31, 2008
Showing with 73,432 additions and 0 deletions.
  1. +18 −0 GC ObjC JSCocoa/ApplicationController.h
  2. +47 −0 GC ObjC JSCocoa/ApplicationController.m
  3. BIN GC ObjC JSCocoa/English.lproj/InfoPlist.strings
  4. +3,134 −0 GC ObjC JSCocoa/English.lproj/MainMenu.xib
  5. BIN GC ObjC JSCocoa/GC ObjC JSCocoa.xcodeproj/TemplateIcon.icns
  6. +1,525 −0 GC ObjC JSCocoa/GC ObjC JSCocoa.xcodeproj/mini.mode2v3
  7. +775 −0 GC ObjC JSCocoa/GC ObjC JSCocoa.xcodeproj/mini.pbxuser
  8. +350 −0 GC ObjC JSCocoa/GC ObjC JSCocoa.xcodeproj/project.pbxproj
  9. +7 −0 GC ObjC JSCocoa/GC ObjC JSCocoa_Prefix.pch
  10. +28 −0 GC ObjC JSCocoa/Info.plist
  11. +6 −0 GC ObjC JSCocoa/main.js
  12. +14 −0 GC ObjC JSCocoa/main.m
  13. +73 −0 GUIConsole/BACKUP/NSLogConsole.h
  14. +448 −0 GUIConsole/BACKUP/NSLogConsole.html
  15. +363 −0 GUIConsole/BACKUP/NSLogConsole.m
  16. BIN GUIConsole/ClassTree.png
  17. +2,670 −0 GUIConsole/CocoaNavJS.html
  18. +52 −0 GUIConsole/CocoaNavJS.js
  19. +1,462 −0 GUIConsole/CocoaNavJS.xib
  20. +5 −0 GUIConsole/English.lproj/.svn/all-wcprops
  21. +31 −0 GUIConsole/English.lproj/.svn/entries
  22. +1 −0 GUIConsole/English.lproj/.svn/format
  23. +28 −0 GUIConsole/Info.plist
  24. BIN GUIConsole/JSCocoa.icns
  25. +41 −0 GUIConsole/JSCocoa.xcodeproj/.svn/all-wcprops
  26. +100 −0 GUIConsole/JSCocoa.xcodeproj/.svn/entries
  27. +1 −0 GUIConsole/JSCocoa.xcodeproj/.svn/format
  28. +1,353 −0 GUIConsole/JSCocoa.xcodeproj/.svn/text-base/mini.mode1v3.svn-base
  29. +1,652 −0 GUIConsole/JSCocoa.xcodeproj/.svn/text-base/mini.mode2v3.svn-base
  30. +499 −0 GUIConsole/JSCocoa.xcodeproj/.svn/text-base/mini.pbxuser.svn-base
  31. +1,455 −0 GUIConsole/JSCocoa.xcodeproj/.svn/text-base/mini.perspectivev3.svn-base
  32. 0 GUIConsole/JSCocoa.xcodeproj/.svn/text-base/mini.tm_build_errors.svn-base
  33. +359 −0 GUIConsole/JSCocoa.xcodeproj/.svn/text-base/project.pbxproj.svn-base
  34. +1,353 −0 GUIConsole/JSCocoa.xcodeproj/mini.mode1v3
  35. +1,566 −0 GUIConsole/JSCocoa.xcodeproj/mini.mode2v3
  36. +399 −0 GUIConsole/JSCocoa.xcodeproj/mini.pbxuser
  37. +1,455 −0 GUIConsole/JSCocoa.xcodeproj/mini.perspectivev3
  38. 0 GUIConsole/JSCocoa.xcodeproj/mini.tm_build_errors
  39. +370 −0 GUIConsole/JSCocoa.xcodeproj/project.pbxproj
  40. +16 −0 GUIConsole/JSCocoaHelper.h
  41. +56 −0 GUIConsole/JSCocoaHelper.m
  42. +9 −0 GUIConsole/JSCocoa_Prefix.pch
  43. +3,747 −0 GUIConsole/MainMenu.xib
  44. +73 −0 GUIConsole/NSLogConsole.h
  45. +448 −0 GUIConsole/NSLogConsole.html
  46. +371 −0 GUIConsole/NSLogConsole.m
  47. +32 −0 GUIConsole/ObjCRuntime.bridgesupport
  48. +97 −0 GUIConsole/main.js
  49. +25 −0 GUIConsole/main.m
  50. +36 −0 JSCocoa/BridgeSupportController.h
  51. +187 −0 JSCocoa/BridgeSupportController.m
  52. BIN JSCocoa/English.lproj/InfoPlist.strings
  53. +26 −0 JSCocoa/Info.plist
  54. +1,471 −0 JSCocoa/JSCocoa (embed).xcodeproj/mini.mode2v3
  55. +131 −0 JSCocoa/JSCocoa (embed).xcodeproj/mini.pbxuser
  56. +335 −0 JSCocoa/JSCocoa (embed).xcodeproj/project.pbxproj
  57. +9 −0 JSCocoa/JSCocoa.h
  58. +1,471 −0 JSCocoa/JSCocoa.xcodeproj/mini.mode2v3
  59. +225 −0 JSCocoa/JSCocoa.xcodeproj/mini.pbxuser
  60. +361 −0 JSCocoa/JSCocoa.xcodeproj/project.pbxproj
  61. +157 −0 JSCocoa/JSCocoaController.h
  62. +2,581 −0 JSCocoa/JSCocoaController.m
  63. +83 −0 JSCocoa/JSCocoaFFIArgument.h
  64. +1,051 −0 JSCocoa/JSCocoaFFIArgument.m
  65. +38 −0 JSCocoa/JSCocoaFFIClosure.h
  66. +195 −0 JSCocoa/JSCocoaFFIClosure.m
  67. +22 −0 JSCocoa/JSCocoaLib.h
  68. +18 −0 JSCocoa/JSCocoaLib.m
  69. +66 −0 JSCocoa/JSCocoaPrivateObject.h
  70. +126 −0 JSCocoa/JSCocoaPrivateObject.m
  71. +7 −0 JSCocoa/JSCocoa_Prefix.pch
  72. +426 −0 JSCocoa/class.js
  73. BIN JSCocoaLauncher/English.lproj/InfoPlist.strings
  74. +3,228 −0 JSCocoaLauncher/English.lproj/MainMenu.xib
  75. +47 −0 JSCocoaLauncher/Info.plist
  76. +320 −0 JSCocoaLauncher/JSCocoaLauncher.js
  77. BIN JSCocoaLauncher/JSCocoaLauncher.xcodeproj/TemplateIcon.icns
  78. +1,514 −0 JSCocoaLauncher/JSCocoaLauncher.xcodeproj/mini.mode2v3
  79. +246 −0 JSCocoaLauncher/JSCocoaLauncher.xcodeproj/mini.pbxuser
  80. +333 −0 JSCocoaLauncher/JSCocoaLauncher.xcodeproj/project.pbxproj
  81. +9 −0 JSCocoaLauncher/JSCocoaLauncher_Prefix.pch
  82. +18 −0 JSCocoaLauncher/JSCocoaSandbox/ApplicationController.h
  83. +79 −0 JSCocoaLauncher/JSCocoaSandbox/ApplicationController.m
  84. BIN JSCocoaLauncher/JSCocoaSandbox/English.lproj/InfoPlist.strings
  85. +3,028 −0 JSCocoaLauncher/JSCocoaSandbox/English.lproj/MainMenu.xib
  86. +457 −0 JSCocoaLauncher/JSCocoaSandbox/English.lproj/NSLogConsole.xib
  87. +28 −0 JSCocoaLauncher/JSCocoaSandbox/Info.plist
  88. BIN JSCocoaLauncher/JSCocoaSandbox/JSCocoaSandbox.xcodeproj/TemplateIcon.icns
  89. +1,470 −0 JSCocoaLauncher/JSCocoaSandbox/JSCocoaSandbox.xcodeproj/mini.mode2v3
  90. +125 −0 JSCocoaLauncher/JSCocoaSandbox/JSCocoaSandbox.xcodeproj/mini.pbxuser
  91. +358 −0 JSCocoaLauncher/JSCocoaSandbox/JSCocoaSandbox.xcodeproj/project.pbxproj
  92. +11 −0 JSCocoaLauncher/JSCocoaSandbox/JSCocoaSandbox_Prefix.pch
  93. +71 −0 JSCocoaLauncher/JSCocoaSandbox/NSLogConsole.h
  94. +299 −0 JSCocoaLauncher/JSCocoaSandbox/NSLogConsole.html
  95. +297 −0 JSCocoaLauncher/JSCocoaSandbox/NSLogConsole.m
  96. +14 −0 JSCocoaLauncher/JSCocoaSandbox/main.m
  97. +27 −0 JSCocoaLauncher/main.m
  98. +75 −0 NSLogConsole from JSCocoa/NSLogConsole.h
  99. +310 −0 NSLogConsole from JSCocoa/NSLogConsole.html
  100. +326 −0 NSLogConsole from JSCocoa/NSLogConsole.m
  101. BIN ProcessViewer/English.lproj/InfoPlist.strings
  102. +2,428 −0 ProcessViewer/English.lproj/MainMenu.nib/designable.nib
  103. BIN ProcessViewer/English.lproj/MainMenu.nib/keyedobjects.nib
  104. +28 −0 ProcessViewer/Info.plist
  105. +1,590 −0 ProcessViewer/JSCoreAnimation.xcodeproj/mini.mode2v3
  106. +272 −0 ProcessViewer/JSCoreAnimation.xcodeproj/mini.pbxuser
  107. +335 −0 ProcessViewer/JSCoreAnimation.xcodeproj/project.pbxproj
  108. +7 −0 ProcessViewer/JSCoreAnimation_Prefix.pch
  109. +38 −0 ProcessViewer/encodings.js
  110. +117 −0 ProcessViewer/jsclass.js
  111. +467 −0 ProcessViewer/main.js
  112. +22 −0 ProcessViewer/main.m
  113. +94 −0 Readme.html
  114. +11 −0 Samples/test.jscocoa
  115. +10 −0 Samples/test2.jscocoa
  116. +8 −0 Samples/test3 copy.jscocoa
  117. +8 −0 Samples/test4 "blah" hop.jscocoa
  118. +11 −0 Tests/.svn/all-wcprops
  119. +49 −0 Tests/.svn/entries
  120. +1 −0 Tests/.svn/format
  121. +120 −0 Tests/.svn/text-base/13 instance.js.svn-base
  122. +15 −0 Tests/1 C and ObjC calls.js
  123. +59 −0 Tests/10 shorthand overload.js
  124. +44 −0 Tests/11 retain test 2.js
  125. +96 −0 Tests/12 instance variables.js
  126. +149 −0 Tests/13 instance.js
  127. +83 −0 Tests/14 class.js
  128. +162 −0 Tests/15 IBOutlet IBAction.js
  129. +133 −0 Tests/16 NSArray NSDictionary easy access.js
  130. +72 −0 Tests/17 struct instance.js
  131. +35 −0 Tests/18 structure args.js
  132. +67 −0 Tests/19 pure js methods.js
  133. +26 −0 Tests/2 structure arguments.js
  134. +14 −0 Tests/20 pointer to function.js
  135. +158 −0 Tests/21 new class definition.js
  136. +28 −0 Tests/22 instance valueOf.js
  137. +26 −0 Tests/23 NSString bridging.js
  138. +30 −0 Tests/24 structure set.js
  139. +42 −0 Tests/25 variadic.js
  140. +80 −0 Tests/26 full NSArray bridge.js
  141. +84 −0 Tests/3 derivation.js
  142. +15 −0 Tests/4 js load.js
  143. +141 −0 Tests/6 basic arguments.js
  144. +47 −0 Tests/7 split call.js
  145. +22 −0 Tests/8 zero arg autocall.js
  146. +72 −0 Tests/9 auto setter.js
  147. +11 −0 Tests/Crashing/.svn/all-wcprops
  148. +40 −0 Tests/Crashing/.svn/entries
  149. +1 −0 Tests/Crashing/.svn/format
  150. +5 −0 Tests/Crashing/.svn/text-base/5 retain count crashing.js.svn-base
  151. +5 −0 Tests/Crashing/5 retain count crashing.js
  152. +17 −0 Tests/Resources/.svn/all-wcprops
  153. +52 −0 Tests/Resources/.svn/entries
  154. +1 −0 Tests/Resources/.svn/format
  155. +34 −0 Tests/Resources/.svn/text-base/encodings.js.svn-base
  156. +8 −0 Tests/Resources/.svn/text-base/externalFileTest.js.svn-base
  157. +8 −0 Tests/Resources/externalFileTest.js
  158. +17 −0 Tests/Resources/standalone window OLD.nib/.svn/all-wcprops
  159. +53 −0 Tests/Resources/standalone window OLD.nib/.svn/entries
  160. +1 −0 Tests/Resources/standalone window OLD.nib/.svn/format
  161. +5 −0 Tests/Resources/standalone window OLD.nib/.svn/prop-base/keyedobjects.nib.svn-base
  162. +672 −0 Tests/Resources/standalone window OLD.nib/.svn/text-base/designable.nib.svn-base
  163. BIN Tests/Resources/standalone window OLD.nib/.svn/text-base/keyedobjects.nib.svn-base
  164. +523 −0 Tests/Resources/standalone window OLD.nib/designable.nib
  165. BIN Tests/Resources/standalone window OLD.nib/keyedobjects.nib
  166. +17 −0 Tests/Resources/standalone window.nib/.svn/all-wcprops
  167. +53 −0 Tests/Resources/standalone window.nib/.svn/entries
  168. +1 −0 Tests/Resources/standalone window.nib/.svn/format
  169. +5 −0 Tests/Resources/standalone window.nib/.svn/prop-base/keyedobjects.nib.svn-base
  170. +672 −0 Tests/Resources/standalone window.nib/.svn/text-base/designable.nib.svn-base
  171. BIN Tests/Resources/standalone window.nib/.svn/text-base/keyedobjects.nib.svn-base
  172. +672 −0 Tests/Resources/standalone window.nib/designable.nib
  173. BIN Tests/Resources/standalone window.nib/keyedobjects.nib
  174. +107 −0 Tests/Stock/.svn/all-wcprops
  175. +232 −0 Tests/Stock/.svn/entries
  176. +1 −0 Tests/Stock/.svn/format
  177. +15 −0 Tests/Stock/.svn/text-base/1 C and ObjC calls.js.svn-base
  178. +38 −0 Tests/Stock/.svn/text-base/10 shorthand overload.js.svn-base
  179. +48 −0 Tests/Stock/.svn/text-base/11 retain test 2.js.svn-base
  180. +71 −0 Tests/Stock/.svn/text-base/12 instance variables.js.svn-base
  181. +89 −0 Tests/Stock/.svn/text-base/14 class TOTEST.js.svn-base
  182. +7 −0 Tests/Stock/.svn/text-base/15 ib_outlet ib_action TOTEST.js.svn-base
  183. +28 −0 Tests/Stock/.svn/text-base/2 structure arguments.js.svn-base
  184. +73 −0 Tests/Stock/.svn/text-base/3 derivation.js.svn-base
  185. +15 −0 Tests/Stock/.svn/text-base/4 js load.js.svn-base
  186. +97 −0 Tests/Stock/.svn/text-base/5 retain count.js.svn-base
  187. +149 −0 Tests/Stock/.svn/text-base/6 basic arguments.js.svn-base
  188. +43 −0 Tests/Stock/.svn/text-base/7 split call.js.svn-base
  189. +19 −0 Tests/Stock/.svn/text-base/8 zero arg autocall.js.svn-base
  190. +70 −0 Tests/Stock/.svn/text-base/9 auto setter.js.svn-base
  191. +89 −0 Tests/Stock/.svn/text-base/z5 retain count ORIG.js.svn-base
  192. +5 −0 Tests/Stock/.svn/text-base/z6 instance functions.js.svn-base
  193. +3 −0 Tests/Stock/.svn/text-base/z7 pointers (NSScanner).js.svn-base
  194. +100 −0 Tests/Stock/5 retain count.js
  195. +89 −0 Tests/Stock/z5 retain count ORIG.js
  196. +3 −0 Tests/Stock/z7 pointers (NSScanner).js
  197. +21 −0 TestsRunner/ApplicationController.h
  198. +79 −0 TestsRunner/ApplicationController.m
  199. BIN TestsRunner/English.lproj/InfoPlist.strings
  200. +3,231 −0 TestsRunner/English.lproj/MainMenu.xib
  201. +28 −0 TestsRunner/Info.plist
  202. BIN TestsRunner/TestsRunner.xcodeproj/TemplateIcon.icns
  203. +1,475 −0 TestsRunner/TestsRunner.xcodeproj/mini.mode2v3
  204. +173 −0 TestsRunner/TestsRunner.xcodeproj/mini.pbxuser
  205. +304 −0 TestsRunner/TestsRunner.xcodeproj/project.pbxproj
  206. +7 −0 TestsRunner/TestsRunner_Prefix.pch
  207. +19 −0 TestsRunner/main.m
  208. +18 −0 XCode Templates/JSCocoa Application/ApplicationController.h
  209. +31 −0 XCode Templates/JSCocoa Application/ApplicationController.m
  210. BIN XCode Templates/JSCocoa Application/English.lproj/InfoPlist.strings
  211. +3,064 −0 XCode Templates/JSCocoa Application/English.lproj/MainMenu.xib
  212. +28 −0 XCode Templates/JSCocoa Application/Info.plist
  213. +14 −0 XCode Templates/JSCocoa Application/JSCocoaApp.js
  214. BIN XCode Templates/JSCocoa Application/JSCocoaApp.xcodeproj/TemplateIcon.icns
  215. +16 −0 XCode Templates/JSCocoa Application/JSCocoaApp.xcodeproj/TemplateInfo.plist
  216. +335 −0 XCode Templates/JSCocoa Application/JSCocoaApp.xcodeproj/project.pbxproj
  217. +7 −0 XCode Templates/JSCocoa Application/JSCocoaApp_Prefix.pch
  218. +14 −0 XCode Templates/JSCocoa Application/main.m
  219. +5 −0 XCode Templates/JSCocoa/JSCocoa File.pbfiletemplate/TemplateInfo.plist
  220. +11 −0 XCode Templates/JSCocoa/JSCocoa File.pbfiletemplate/file.js
  221. +5 −0 XCode Templates/JSCocoa/JSCocoa NSObject subclass.pbfiletemplate/TemplateInfo.plist
  222. +16 −0 XCode Templates/JSCocoa/JSCocoa NSObject subclass.pbfiletemplate/file.js
  223. +5 −0 XCode Templates/JSCocoa/JSCocoa NSView subclass.pbfiletemplate/TemplateInfo.plist
  224. +16 −0 XCode Templates/JSCocoa/JSCocoa NSView subclass.pbfiletemplate/file.js
  225. +30 −0 iPhoneTest2/Info.plist
  226. +112 −0 iPhoneTest2/JSBase.h
  227. +77 −0 iPhoneTest2/JSContextRef.h
  228. +645 −0 iPhoneTest2/JSObjectRef.h
  229. +143 −0 iPhoneTest2/JSStringRef.h
  230. +61 −0 iPhoneTest2/JSStringRefCF.h
  231. +277 −0 iPhoneTest2/JSValueRef.h
  232. +37 −0 iPhoneTest2/JavaScriptCore.h
  233. +17 −0 iPhoneTest2/JavascriptCore-dlsym.h
  234. +518 −0 iPhoneTest2/JavascriptCore-dlsym.m
  235. +179 −0 iPhoneTest2/MainWindow.xib
  236. BIN iPhoneTest2/hiPointCount.png
  237. +53 −0 iPhoneTest2/iPhone.bridgesupport
  238. +205 −0 iPhoneTest2/iPhoneMain.js
  239. +1,475 −0 iPhoneTest2/iPhoneTest2.xcodeproj/mini.mode2v3
  240. +178 −0 iPhoneTest2/iPhoneTest2.xcodeproj/mini.pbxuser
  241. +346 −0 iPhoneTest2/iPhoneTest2.xcodeproj/project.pbxproj
  242. +308 −0 iPhoneTest2/iPhoneTest2ViewController.xib
  243. +11 −0 iPhoneTest2/iPhoneTest2_Prefix.pch
  244. BIN iPhoneTest2/lowPointCount.png
  245. +32 −0 iPhoneTest2/main.m
@@ -0,0 +1,18 @@
+//
+// ApplicationController.h
+// GC ObjC JSCocoa
+//
+// Created by Patrick Geiller on 22/12/08.
+// Copyright 2008 __MyCompanyName__. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface ApplicationController : NSObject {
+
+}
+
+- (IBAction)runJSTests:(id)sender;
+
+@end
@@ -0,0 +1,47 @@
+//
+// ApplicationController.m
+// GC ObjC JSCocoa
+//
+// Created by Patrick Geiller on 22/12/08.
+// Copyright 2008 __MyCompanyName__. All rights reserved.
+//
+
+#import "ApplicationController.h"
+#import "JSCocoa.h"
+
+@implementation ApplicationController
+
+- (void)applicationDidFinishLaunching:(id)notif
+{
+ NSLog(@"DONE");
+
+ id c = [JSCocoaController sharedController];
+ id mainJSFile = [NSString stringWithFormat:@"%@/Contents/Resources/main.js", [[NSBundle mainBundle] bundlePath]];
+ [c evalJSFile:mainJSFile];
+
+
+ [self performSelector:@selector(runJSTests:) withObject:nil afterDelay:0];
+// objc_assignIvar();
+}
+
+- (void)test
+{
+ NSLog(@"test");
+}
+
+int runCount;
+- (IBAction)runJSTests:(id)sender
+{
+ NSLog(@"RUN TESTS");
+ id path = [[NSBundle mainBundle] bundlePath];
+ path = [NSString stringWithFormat:@"%@/Contents/Resources/Tests", path];
+// NSLog(@"Run %d from %@", runCount, path);
+ BOOL b = [[JSCocoaController sharedController] runTests:path];
+ [JSCocoaController garbageCollect];
+ if (!b) { NSLog(@"!!!!!!!!!!!FAIL %d from %@", runCount, path); return; }
+ runCount++;
+ NSLog(@">>>>Ran %d", runCount);
+NSLog(@"GC enabled=%d", [[NSGarbageCollector defaultCollector] isEnabled]);
+}
+
+@end
Binary file not shown.
Oops, something went wrong.

0 comments on commit ce975aa

Please sign in to comment.