Giter VIP home page Giter VIP logo

Comments (5)

tjbaron avatar tjbaron commented on July 28, 2024

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.

trevorlinton avatar trevorlinton commented on July 28, 2024

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.

trevorlinton avatar trevorlinton commented on July 28, 2024

@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.

trevorlinton avatar trevorlinton commented on July 28, 2024

Fixed on https://github.com/TooTallNate/NodObjC/tree/0.1.0, waiting for test/docs/merge

from nodobjc.

trevorlinton avatar trevorlinton commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.