Comments (5)
Should have mentioned that in:
var abc = $.NSMakeRect(0, 0, 500, 500);
console.log(abc);
var abcd = $.NSMakeRect(0, 0, 600, 600);
console.log(abcd);
both return the same memory address.
Also, not sure if this is related, but trying to get an NSRect returned from a window also causes a segfault:
// Both the following lines segfault:
win('contentView')('frame');
win('frame');
Thanks,
Thomas
from nodobjc.
I've confirmed this as well, i'm unsure as to the issue but it seems to be a node-ffi vs ffi issue, the ffi package hasn't been updated in some time as a dependency, ffi package seems to have changed its api significantly making upgrading a bit harder.
from nodobjc.
@tjbaron This is an issue with the previous libffi (pre-1.0), however the new libffi(1.0+) doesn't have this issue. However the NodObjC master branch relies on libffi pre-1.0, you can use the 1.0-ffi branch on the repo to fix this issue.
@TooTallNate It might be worth considering merging the 1.0 ffi branch onto master and update the npm distro so its up to date with node-ffi > 1.0. Just a thought.
from nodobjc.
Fixed on https://github.com/TooTallNate/NodObjC/tree/0.1.0, waiting for test/docs/merge
from nodobjc.
Fixed and merged, there's a unit test for this now: https://github.com/TooTallNate/NodObjC/blob/master/test/struct-test.js
from nodobjc.
Related Issues (20)
- Doing an in-app purchase in Electron app for the Mac App Store HOT 1
- [Question] Are there any simple ways to get a binary data of NSData or NSInlineData? HOT 4
- Do I need some release procedure?
- Unable install nodobjc in electron project
- Please update with fixed ffi "callback has been garbage collected" (ffi-napi maybe?) HOT 1
- Activating an application - may be a bug
- can't install nodobjc HOT 2
- Dynamic Linking Error HOT 3
- Question: Any help regarding usage of the NSSharingService (composeEmail)
- Error in electron 3.0.0 HOT 5
- TypeError: error setting argument 2 - writeInt64: Number/String 64-bit value required HOT 2
- Unable to call CoreTextFunctions
- $.import() is not importing nested frameworks
- .EKEventStore
- node event loop blocked whilst menus are active HOT 3
- crashed in electron 4.2.5 HOT 1
- is support Node V12 and electron 5+ HOT 3
- install error
- Question: how to create a NSWindow? HOT 1
- No native build was found for platform=darwin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodobjc.