Permalink
Browse files

JSON handling @mugginsoft

  • Loading branch information...
1 parent 308ca45 commit de3e953503f7c06154caacdfe9ee8210c39f3830 @parmanoir committed Apr 26, 2012
@@ -939,7 +939,7 @@ - (JSValueRef)_toJS:(id)object {
}
else if ([object isKindOfClass:[NSDictionary class]]) {
NSDictionary* dict = (NSDictionary*)object;
- JSObjectRef jsDict = JSValueToObject(ctx, [self evalJSString:@"[]"], NULL);
+ JSObjectRef jsDict = JSObjectMake(ctx, NULL, NULL);
for (NSString* key in dict) {
id value = [dict valueForKey:key];
JSValueRef convertedValue = [self _toJS:value];
View
@@ -1,4 +1,13 @@
+
+ //
+ // class.js
+ // Handles derivation, ObjJ syntax
+ //
+ // __globalJSFunctionRepository__ is a global hash that handles js functions defined on ObjC classes
+ //
+
+
// ObjC
var nil = null
var YES = true
@@ -585,7 +594,7 @@
//
- // type o
+ // type o (Handling methods that take pointers as arguments)
//
function outArgument()
{
@@ -655,6 +664,11 @@
}
+
+ //
+ // ObjJ syntax
+ //
+
// JSLint
function __logToken(token)
{
@@ -2,4 +2,20 @@
<Bucket
type = "1"
version = "1.0">
+ <FileBreakpoints>
+ <FileBreakpoint
+ shouldBeEnabled = "No"
+ ignoreCount = "0"
+ continueAfterRunningActions = "No"
+ isPathRelative = "0"
+ filePath = "/Users/mini/Software Inexdo/JSCocoa/JSCocoa/JSCocoaFFIArgument.m"
+ timestampString = "356700213.930288"
+ startingColumnNumber = "9223372036854775807"
+ endingColumnNumber = "9223372036854775807"
+ startingLineNumber = "1188"
+ endingLineNumber = "1188"
+ landmarkName = "+unboxJSValueRef:toObject:inContext:"
+ landmarkType = "5">
+ </FileBreakpoint>
+ </FileBreakpoints>
</Bucket>

0 comments on commit de3e953

Please sign in to comment.