Comments (6)
Is there way to "rebuild" all modules in a project?
@marcfowler figured something out here:
nwjs/nw.js#1811 (comment)
from nodobjc.
@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.
@reggi Sorry for late response. Did you ever get this figured out?
from nodobjc.
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.
@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.
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)
- 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.