Skip to content

Commit

Permalink
Fixed valueOfCallback comment
Browse files Browse the repository at this point in the history
  • Loading branch information
parmanoir committed Aug 18, 2010
1 parent df04bae commit 9045a17
Show file tree
Hide file tree
Showing 58 changed files with 366 additions and 55 deletions.
5 changes: 4 additions & 1 deletion JSCocoa/JSCocoaController.m
Original file line number Diff line number Diff line change
Expand Up @@ -3034,7 +3034,10 @@ JSValueRef boxedValueFromExternalContext(JSContextRef externalCtx, JSValueRef va


//
// Autocall : return value
// valueOf : from a boxed ObjC object, returns a primitive javascript value (number or string)
// that JavascriptCore can use in expressions (eg boxedObject + 'this', boxedObject < 4)
//
// The converted object is temporary and does not affect the boxed object
//
JSValueRef valueOfCallback(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 13 additions & 1 deletion Tests/56 whitespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,16 @@
if (object.fetchTab != ' ') throw 'Whitespace failed (2)'
if (object.fetchSpaces != ' ') throw 'Whitespace failed (3)'



log('a')
var o = NSString.stringWithString('hello')
log('b')
var p = NSString.stringWithString(o)
log('c')
var n = NSNumber.numberWithInt(123)
log('d')
NSApplication.sharedApplication.delegate.add1(n)
log('e')
log('r=' + r)
log(o + '*')
log(p + '*')
59 changes: 29 additions & 30 deletions TestsRunner/TestsRunner.xcodeproj/mini.mode2v3
Original file line number Diff line number Diff line change
Expand Up @@ -202,24 +202,24 @@
<key>Content</key>
<dict>
<key>PBXProjectModuleGUID</key>
<string>3DA8C8CE121C5AD100500160</string>
<string>3DA8C8F3121C5F0400500160</string>
<key>PBXProjectModuleLabel</key>
<string>56 whitespace.js</string>
<string>JSCocoaController.m</string>
<key>PBXSplitModuleInNavigatorKey</key>
<dict>
<key>Split0</key>
<dict>
<key>PBXProjectModuleGUID</key>
<string>3DA8C8CF121C5AD100500160</string>
<string>3DA8C8F4121C5F0400500160</string>
<key>PBXProjectModuleLabel</key>
<string>56 whitespace.js</string>
<string>JSCocoaController.m</string>
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>3DA8C94C121C5FD100500160</string>
<string>3DA8C977121C653E00500160</string>
<key>history</key>
<array>
<string>3DA8C8F1121C5F0400500160</string>
<string>3DA8C95A121C62D100500160</string>
</array>
</dict>
<key>SplitCount</key>
Expand All @@ -231,35 +231,35 @@
<key>Geometry</key>
<dict>
<key>Frame</key>
<string>{{0, 20}, {1097, 944}}</string>
<string>{{0, 20}, {968, 907}}</string>
<key>PBXModuleWindowStatusBarHidden2</key>
<false/>
<key>RubberWindowFrame</key>
<string>390 193 1097 985 0 0 1920 1178 </string>
<string>338 147 968 948 0 0 1920 1178 </string>
</dict>
</dict>
<dict>
<key>Content</key>
<dict>
<key>PBXProjectModuleGUID</key>
<string>3DA8C8D2121C5AD100500160</string>
<string>3DA8C8CE121C5AD100500160</string>
<key>PBXProjectModuleLabel</key>
<string>ApplicationController.m</string>
<string>56 whitespace.js</string>
<key>PBXSplitModuleInNavigatorKey</key>
<dict>
<key>Split0</key>
<dict>
<key>PBXProjectModuleGUID</key>
<string>3DA8C8D3121C5AD100500160</string>
<string>3DA8C8CF121C5AD100500160</string>
<key>PBXProjectModuleLabel</key>
<string>ApplicationController.m</string>
<string>56 whitespace.js</string>
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>3DA8C94D121C5FD100500160</string>
<string>3DA8C978121C653E00500160</string>
<key>history</key>
<array>
<string>3DA8C931121C5F7400500160</string>
<string>3DA8C958121C62D100500160</string>
</array>
</dict>
<key>SplitCount</key>
Expand All @@ -271,35 +271,35 @@
<key>Geometry</key>
<dict>
<key>Frame</key>
<string>{{0, 20}, {968, 907}}</string>
<string>{{0, 20}, {1097, 944}}</string>
<key>PBXModuleWindowStatusBarHidden2</key>
<false/>
<key>RubberWindowFrame</key>
<string>152 194 968 948 0 0 1920 1178 </string>
<string>538 187 1097 985 0 0 1920 1178 </string>
</dict>
</dict>
<dict>
<key>Content</key>
<dict>
<key>PBXProjectModuleGUID</key>
<string>3DA8C8F3121C5F0400500160</string>
<string>3DA8C8D2121C5AD100500160</string>
<key>PBXProjectModuleLabel</key>
<string>JSCocoaController.m</string>
<string>ApplicationController.m</string>
<key>PBXSplitModuleInNavigatorKey</key>
<dict>
<key>Split0</key>
<dict>
<key>PBXProjectModuleGUID</key>
<string>3DA8C8F4121C5F0400500160</string>
<string>3DA8C8D3121C5AD100500160</string>
<key>PBXProjectModuleLabel</key>
<string>JSCocoaController.m</string>
<string>ApplicationController.m</string>
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>3DA8C94E121C5FD100500160</string>
<string>3DA8C979121C653E00500160</string>
<key>history</key>
<array>
<string>3DA8C8EA121C5EA700500160</string>
<string>3DA8C968121C637A00500160</string>
</array>
</dict>
<key>SplitCount</key>
Expand All @@ -315,7 +315,7 @@
<key>PBXModuleWindowStatusBarHidden2</key>
<false/>
<key>RubberWindowFrame</key>
<string>264 150 968 948 0 0 1920 1178 </string>
<string>152 194 968 948 0 0 1920 1178 </string>
</dict>
</dict>
<dict>
Expand All @@ -336,7 +336,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>3DA8C94F121C5FD100500160</string>
<string>3DA8C97A121C653E00500160</string>
<key>history</key>
<array>
<string>3DA8C8F8121C5F0400500160</string>
Expand Down Expand Up @@ -376,7 +376,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>3DA8C950121C5FD100500160</string>
<string>3DA8C97B121C653E00500160</string>
<key>history</key>
<array>
<string>3D53202B121C59D500B5076A</string>
Expand Down Expand Up @@ -416,7 +416,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>3DA8C951121C5FD100500160</string>
<string>3DA8C97C121C653E00500160</string>
<key>history</key>
<array>
<string>3D53202D121C59D500B5076A</string>
Expand Down Expand Up @@ -523,7 +523,7 @@
</array>
</array>
<key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key>
<string>{{0, 263}, {432, 356}}</string>
<string>{{0, 278}, {432, 356}}</string>
</dict>
<key>PBXTopSmartGroupGIDs</key>
<array/>
Expand Down Expand Up @@ -723,19 +723,18 @@
<integer>0</integer>
<key>WindowOrderList</key>
<array>
<string>3DA8C952121C5FD100500160</string>
<string>3DA8C8DF121C5AD100500160</string>
<string>3DA8C8E0121C5AD100500160</string>
<string>1C530D54069F1CE1000CFCEE</string>
<string>1C530D52069F1CE1000CFCEE</string>
<string>3D531F27121C3B2500B5076A</string>
<string>3D531FA5121C420000B5076A</string>
<string>3DA8C8F6121C5F0400500160</string>
<string>3DA8C8F3121C5F0400500160</string>
<string>/Users/mini/Software Inexdo/JSCocoa/TestsRunner/TestsRunner.xcodeproj</string>
<string>3DA8C8D2121C5AD100500160</string>
<string>3DA8C8CE121C5AD100500160</string>
<string>1C530D5B069F1CE1000CFCEE</string>
<string>3DA8C8CE121C5AD100500160</string>
<string>3DA8C8F3121C5F0400500160</string>
</array>
<key>WindowString</key>
<string>1266 736 449 442 0 0 1920 1178 </string>
Expand Down
Loading

0 comments on commit 9045a17

Please sign in to comment.