Giter VIP home page Giter VIP logo

Comments (6)

reggi avatar reggi commented on September 2, 2024

Is there way to "rebuild" all modules in a project?

@marcfowler figured something out here:
nwjs/nw.js#1811 (comment)

from nodobjc.

trevorlinton avatar trevorlinton commented on September 2, 2024

@reggi, the packages seem to be using an older version of nodobjc (0.0.15). The current is 1.0. Perhaps TooTallNate may be able to chime in here, but there's no need to build anything in nodobjc.

Maybe its a dependency of nodobjc that's not playing well with node-webkit OR its possible its accidentally pulling in 1.0 instead of 0.0.15?.. not sure.

from nodobjc.

TooTallNate avatar TooTallNate commented on September 2, 2024

@reggi Sorry for late response. Did you ever get this figured out?

from nodobjc.

marcfowler avatar marcfowler commented on September 2, 2024

No, I never had any luck with the (current) version of node-webkit when I tried recently. There has been some movement over in the other thread though: nwjs/nw.js#1811 (comment) I don't know if this will help though, I'll check as soon as I can get to it. Looks like a fork of node-ffi to help?

from nodobjc.

reggi avatar reggi commented on September 2, 2024

@TooTallNate @marcfowler I never figured out a solution for using the module I needed I just made another script (a workaround) for setting the background in osx using node-osascript. Plus I moved to atom-shell, which had the issue as well.

var osascript = require('node-osascript');

module.exports = osxBackgroundGet;

function osxBackgroundGet(callback) {
  osascript.execute([
    'tell application ``System Events"',
    'tell current desktop',
    'get picture',
    'end tell',
    'end tell'
  ].join("\n"), callback);
}

But I could still see this being an issue with some modules & node-webkit / atom-shell.

from nodobjc.

hlian1 avatar hlian1 commented on September 2, 2024

Just felt like I need to say that NodObjC builds fine with nw-gyp using nwjs 0.12.2. Only ref and ffi need to be rebuilt. The example "Hello World" application then works. Seems like $.NSApplication('sharedApplication') returns a new application; I was not able to get nwjs's own NSApp.

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.