Skip to content

Commit 2d3c9ec

Browse files
committed
debug
1 parent 0672dc4 commit 2d3c9ec

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

examples/test.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import "objc";
22

3-
const view = NSView.new();
4-
5-
console.log(view.frame.size.width, view.frame.size.height);
3+
const frame1 = new CGRect({ origin: { x: 0, y: 0 }, size: { width: 500, height: 500 } });
4+
const frame2 = new CGRect({ origin: { x: 0, y: 0 }, size: { width: 500, height: 500 } });
65

7-
view.frame = { origin: { x: 0, y: 0 }, size: { width: 500, height: 500 } };
8-
9-
console.log(view.frame.size.width, view.frame.size.height);
6+
const view = NSView.new();
7+
view.frame = frame1;
8+
view.frame = frame2;

src/TypeConv.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,8 @@ void toNative(napi_env env, napi_value value, void *result, bool *shouldFree,
12391239
return;
12401240
}
12411241

1242+
NSLog(@"Struct.toNative info: %s, %d", info->name, info->size);
1243+
12421244
// Serialize directly to previously allocated memory
12431245
StructObject(env, info, value, result);
12441246
}

0 commit comments

Comments
 (0)