Permalink
Browse files

Added autocall warning when autocall is ON and object.method() fails …

…(remove the parens)
  • Loading branch information...
1 parent fcb25e4 commit 7d58498a35694d0000e9ec485c7625ea306b098d @parmanoir committed Feb 4, 2010
@@ -4016,7 +4016,7 @@ static JSValueRef jsCocoaObject_callAsFunction_ffi(JSContextRef ctx, JSObjectRef
//
if (!callingObjC)
{
- if (!privateObject.xml) return throwException(ctx, exception, @"jsCocoaObject_callAsFunction : no xml in object = nothing to call") , NULL;
+ if (!privateObject.xml) return throwException(ctx, exception, @"jsCocoaObject_callAsFunction : no xml in object = nothing to call (Autocall problem ? To call object.method(), remove the parens if autocall is ON)") , NULL;
// NSLog(@"C encoding=%@", privateObject.xml);
argumentEncodings = [JSCocoaController parseCFunctionEncoding:privateObject.xml functionName:&functionName];
// Grab symbol
@@ -142,7 +142,6 @@ - (void)calledByClosureWithArgs:(void**)closureArgs returnValue:(void*)returnVal
{
JSObjectRef jsFunctionObject = JSValueToObject(ctx, jsFunction, NULL);
JSValueRef exception = NULL;
-
// ## Only objC for now. Need to test C function pointers.
@@ -1,29 +0,0 @@
-{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\paperw9840\paperh8400
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
-
-\f0\b\fs24 \cf0 Engineering:
-\b0 \
- Some people\
-\
-
-\b Human Interface Design:
-\b0 \
- Some other people\
-\
-
-\b Testing:
-\b0 \
- Hopefully not nobody\
-\
-
-\b Documentation:
-\b0 \
- Whoever\
-\
-
-\b With special thanks to:
-\b0 \
- Mom\
-}
@@ -202,166 +202,6 @@
<key>Content</key>
<dict>
<key>PBXProjectModuleGUID</key>
- <string>3D93663311128C6000600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>JSCocoaController.m</string>
- <key>PBXSplitModuleInNavigatorKey</key>
- <dict>
- <key>Split0</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>3D93663411128C6000600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>JSCocoaController.m</string>
- <key>_historyCapacity</key>
- <integer>0</integer>
- <key>bookmark</key>
- <string>3D93674E111351F400600955</string>
- <key>history</key>
- <array>
- <string>3D9365E111128C0B00600955</string>
- </array>
- </dict>
- <key>SplitCount</key>
- <string>1</string>
- </dict>
- <key>StatusBarVisibility</key>
- <true/>
- </dict>
- <key>Geometry</key>
- <dict>
- <key>Frame</key>
- <string>{{0, 20}, {880, 686}}</string>
- <key>PBXModuleWindowStatusBarHidden2</key>
- <false/>
- <key>RubberWindowFrame</key>
- <string>517 149 880 727 0 0 1920 1178 </string>
- </dict>
- </dict>
- <dict>
- <key>Content</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>3D9365A51112897400600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>BridgeSupportController.m</string>
- <key>PBXSplitModuleInNavigatorKey</key>
- <dict>
- <key>Split0</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>3D9365A61112897400600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>BridgeSupportController.m</string>
- <key>_historyCapacity</key>
- <integer>0</integer>
- <key>bookmark</key>
- <string>3D93674F111351F400600955</string>
- <key>history</key>
- <array>
- <string>3D93667911134FA400600955</string>
- </array>
- </dict>
- <key>SplitCount</key>
- <string>1</string>
- </dict>
- <key>StatusBarVisibility</key>
- <true/>
- </dict>
- <key>Geometry</key>
- <dict>
- <key>Frame</key>
- <string>{{0, 20}, {1039, 794}}</string>
- <key>PBXModuleWindowStatusBarHidden2</key>
- <false/>
- <key>RubberWindowFrame</key>
- <string>669 172 1039 835 0 0 1920 1178 </string>
- </dict>
- </dict>
- <dict>
- <key>Content</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>3D9365A81112897400600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>BridgeSupportController.h</string>
- <key>PBXSplitModuleInNavigatorKey</key>
- <dict>
- <key>Split0</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>3D9365A91112897400600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>BridgeSupportController.h</string>
- <key>_historyCapacity</key>
- <integer>0</integer>
- <key>bookmark</key>
- <string>3D936750111351F400600955</string>
- <key>history</key>
- <array>
- <string>3D93667B11134FA400600955</string>
- </array>
- </dict>
- <key>SplitCount</key>
- <string>1</string>
- </dict>
- <key>StatusBarVisibility</key>
- <true/>
- </dict>
- <key>Geometry</key>
- <dict>
- <key>Frame</key>
- <string>{{0, 20}, {1039, 794}}</string>
- <key>PBXModuleWindowStatusBarHidden2</key>
- <false/>
- <key>RubberWindowFrame</key>
- <string>354 230 1039 835 0 0 1920 1178 </string>
- </dict>
- </dict>
- <dict>
- <key>Content</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>3D9362CF1111FAA500600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>NSString.h</string>
- <key>PBXSplitModuleInNavigatorKey</key>
- <dict>
- <key>Split0</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>3D9362D01111FAA500600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>NSString.h</string>
- <key>_historyCapacity</key>
- <integer>0</integer>
- <key>bookmark</key>
- <string>3D936751111351F400600955</string>
- <key>history</key>
- <array>
- <string>3D9362E01111FB2400600955</string>
- </array>
- </dict>
- <key>SplitCount</key>
- <string>1</string>
- </dict>
- <key>StatusBarVisibility</key>
- <true/>
- </dict>
- <key>Geometry</key>
- <dict>
- <key>Frame</key>
- <string>{{0, 20}, {1039, 794}}</string>
- <key>PBXModuleWindowStatusBarHidden2</key>
- <false/>
- <key>RubberWindowFrame</key>
- <string>293 170 1039 835 0 0 1920 1178 </string>
- </dict>
- </dict>
- <dict>
- <key>Content</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
<string>3D9360DF110FDEBF00600955</string>
<key>PBXProjectModuleLabel</key>
<string>ApplicationController.m</string>
@@ -376,7 +216,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
- <string>3D936752111351F400600955</string>
+ <string>3D93677A1113572A00600955</string>
<key>history</key>
<array>
<string>3D9362B11111F95700600955</string>
@@ -402,46 +242,6 @@
<key>Content</key>
<dict>
<key>PBXProjectModuleGUID</key>
- <string>3D9362B61111F95700600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>NSPathUtilities.h</string>
- <key>PBXSplitModuleInNavigatorKey</key>
- <dict>
- <key>Split0</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>3D9362B71111F95700600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>NSPathUtilities.h</string>
- <key>_historyCapacity</key>
- <integer>0</integer>
- <key>bookmark</key>
- <string>3D936753111351F400600955</string>
- <key>history</key>
- <array>
- <string>3D9362B81111F95700600955</string>
- </array>
- </dict>
- <key>SplitCount</key>
- <string>1</string>
- </dict>
- <key>StatusBarVisibility</key>
- <true/>
- </dict>
- <key>Geometry</key>
- <dict>
- <key>Frame</key>
- <string>{{0, 20}, {1039, 794}}</string>
- <key>PBXModuleWindowStatusBarHidden2</key>
- <false/>
- <key>RubberWindowFrame</key>
- <string>286 149 1039 835 0 0 1920 1178 </string>
- </dict>
- </dict>
- <dict>
- <key>Content</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
<string>3D93601A110E993600600955</string>
<key>PBXProjectModuleLabel</key>
<string>NSDocument.h</string>
@@ -456,7 +256,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
- <string>3D936754111351F400600955</string>
+ <string>3D93677B1113572A00600955</string>
<key>history</key>
<array>
<string>3D93601C110E993600600955</string>
@@ -496,7 +296,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
- <string>3D936755111351F400600955</string>
+ <string>3D93677C1113572A00600955</string>
<key>history</key>
<array>
<string>3D935FF8110E966A00600955</string>
@@ -536,7 +336,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
- <string>3D936756111351F400600955</string>
+ <string>3D93677D1113572A00600955</string>
<key>history</key>
<array>
<string>3D936016110E993600600955</string>
@@ -558,46 +358,6 @@
<string>130 233 1039 835 0 0 1920 1178 </string>
</dict>
</dict>
- <dict>
- <key>Content</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>3D936036110E9A7500600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>NSWindow.h</string>
- <key>PBXSplitModuleInNavigatorKey</key>
- <dict>
- <key>Split0</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>3D936037110E9A7500600955</string>
- <key>PBXProjectModuleLabel</key>
- <string>NSWindow.h</string>
- <key>_historyCapacity</key>
- <integer>0</integer>
- <key>bookmark</key>
- <string>3D936757111351F400600955</string>
- <key>history</key>
- <array>
- <string>3D936038110E9A7500600955</string>
- </array>
- </dict>
- <key>SplitCount</key>
- <string>1</string>
- </dict>
- <key>StatusBarVisibility</key>
- <true/>
- </dict>
- <key>Geometry</key>
- <dict>
- <key>Frame</key>
- <string>{{0, 20}, {1039, 794}}</string>
- <key>PBXModuleWindowStatusBarHidden2</key>
- <false/>
- <key>RubberWindowFrame</key>
- <string>376 -41 1039 835 0 0 1920 1178 </string>
- </dict>
- </dict>
</array>
<key>PerspectiveWidths</key>
<array>
@@ -884,23 +644,18 @@
<string>3D9363D611127BE300600955</string>
<string>3D9363D511127BDD00600955</string>
<string>3D93633C1112063700600955</string>
+ <string>3D936036110E9A7500600955</string>
<string>3D936005110E966A00600955</string>
<string>3D936006110E966A00600955</string>
+ <string>1C530D54069F1CE1000CFCEE</string>
+ <string>1C530D57069F1CE1000CFCEE</string>
<string>1C530D52069F1CE1000CFCEE</string>
- <string>3D936036110E9A7500600955</string>
<string>3D936014110E993600600955</string>
<string>3D815A5F10C48BC50015B843</string>
<string>3D93601A110E993600600955</string>
- <string>3D9362B61111F95700600955</string>
<string>3D9360DF110FDEBF00600955</string>
- <string>3D9362CF1111FAA500600955</string>
- <string>1C530D57069F1CE1000CFCEE</string>
- <string>1C530D54069F1CE1000CFCEE</string>
<string>/Users/mini/Software Inexdo/JSCocoa/Samples/Samples.xcodeproj</string>
<string>1C530D5B069F1CE1000CFCEE</string>
- <string>3D9365A81112897400600955</string>
- <string>3D9365A51112897400600955</string>
- <string>3D93663311128C6000600955</string>
</array>
<key>WindowString</key>
<string>-4 759 446 419 0 0 1920 1178 </string>
@@ -1254,7 +1009,7 @@
<key>WindowToolGUID</key>
<string>1C530D54069F1CE1000CFCEE</string>
<key>WindowToolIsVisible</key>
- <true/>
+ <false/>
</dict>
<dict>
<key>FirstTimeWindowDisplayed</key>
@@ -1345,7 +1100,7 @@
<key>WindowToolGUID</key>
<string>1C530D57069F1CE1000CFCEE</string>
<key>WindowToolIsVisible</key>
- <true/>
+ <false/>
</dict>
<dict>
<key>Identifier</key>
Oops, something went wrong.

0 comments on commit 7d58498

Please sign in to comment.