ccgus / jstalk Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://jstalk.org/
License: Other
Home Page: http://jstalk.org/
License: Other
I've seen that JSCocoa allows to do this using an outArgument:
var error = new outArgument
if (![headerString writeToFile:headerFile atomically:true encoding:NSUTF8StringEncoding error:error]) {
log("error" + error.outValue)
}
but this doesn't seem to work in JSTalk. Is it possible to do something like this?
If you try and make an autorelease pool, retain will be called on it, which will end up throwing an exception.
I installed JSTalk 1.01 from the jstalk.org site. When I try to run a Script I get the following error:
jstalk[39801]: loadBridgeSupport : Error Domain=NSCocoaErrorDomain Code=260 "The file “CoreGraphics.bridgeSupport” couldn’t be opened because there is no such file." UserInfo=0x100144360 {NSFilePath=/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/BridgeSupport/CoreGraphics.bridgeSupport, NSUnderlyingError=0x100144770 "The operation couldn’t be completed. No such file or directory"}
What can I do to get JSTalk working under Mountain Lion?
A web search for "CoreGraphics.bridgeSupport" gave me the information that the places for the bridgeSupport files has changed. So I used the command
"sudo gen_bridge_metadata --64-bit -f /System/Library/Frameworks/CoreGraphics.framework/ -o /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/BridgeSupport/CoreGraphics.bridgesupport"
to create the CoreGraphics.bridgeSupport in the ApplicationServices.framework folder. The error went away.
But when I try an example Acorn script I get the error "Can't find the variable NSCalibratedRGBColorSpace". may there be other bridgeSupport files missing?
Can I get JSTalk 1.01 working on Mountain Lion or is there an updated JSTalk version for Mountain Lion?
I'm experimenting around with JsTalk and tried to use underscore.js from my script (I concatenated the files) and when I run it using jstalk it finds the following error:
Error line 503, SyntaxError: Expected an identifier but found '[' instead
When I execute the exact same code using node instead of jstalk it works just fine.
It seems the command line interface doesn't load class.js (JSCocoacController:277), as it's not contained in any bundle.
% brew install jstalk
==> Cloning https://github.com/ccgus/jstalk.git
Updating /Library/Caches/Homebrew/jstalk--git
==> Checking out tag v1.0.1
==> xcodebuild -target JSTalk Framework -configuration Release ONLY_ACTIVE_ARCH=YES SYMROOT=build
The following build commands failed:
Check dependencies
(1 failure)
brew config / logfile output:
https://gist.github.com/visualisierte/5793257
JSTalk is awesome. Im super excited about it as a JavaScript developer myself. I want to write an app, but I have no clue how to even start. I saw others complain about this also and I think this is the only thing really holding back this project. I'd be more than happy to help write and design docs for you guys if you could give me some better explanations or examples.
Is is possible to inspect an object and get a list of all available methods/properties? that would be huge
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.