JSCocoa 1.0, write Cocoa apps in Javascript
Do you want to write Cocoa applications, but happen to be handier with Javascript than with Objective-C? JSCocoa to the rescue! Similar in concept to RubyCocoa, JSCocoa provides a bridge between Webkit's JavascriptCore and Cocoa, allowing you to call C and Objective-C code, as well as build Javascript classes which inherit from Objective-C classes.
Visit the Google Code page for a quickstart and some syntax explanations. JSCocoa is open source and available for subversion checkout or direct download.
Share
Source: http://inexdo.com/JSCocoa
Categories
Do you want to write Cocoa applications, but happen to be handier with Javascript than with Objective-C? JSCocoa to the rescue! Similar in...
Add a Comment
So this would work on the iphone? I think there are a lot of javascript developers that would like to write apps for the iphone but don't want to learn cocoa. This is just what they need.
For this to take off, someone needs to release an xcode project of this applied to the iphone so javascript developers can just open it and start typing their .js code.
This is sorta like Jiggy for iphone but better. Would love to see any iphone samples people come up with.
> So this would work on the iphone? I think there are a lot of javascript
> developers that would like to write apps for the iphone but don't want to > learn cocoa. This is just what they need.
You'd still have to learn Cocoa (the API). I think what you meant is that you won't have to learn Objective-C (the language). If you already know any C-like language, learning Objective-C is pretty easy. It always takes me much longer to become comfortable with an API than a language (assuming we're excluding BrainF*ck...)
I've uploaded a version working on the iPhone simulator :
http://code.google.com/p/jscocoa/source/browse/trunk/JSCocoa/iPhoneTest2/iPhoneMain.js
Check it out via svn.
Wow!! This is cool !! I'll check it out!!
It means I dont need to learn Objective C to make iPhone apps! I can use JavaScript !!
Pretty cool !!
I believe this is one of the 7 signs of the Apocalypse.
We can now write our Javascript apps in Objective-J and our Cocoa apps in Javascript.
What a strange combination...
October 09 2008 at 5:15 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
- Philips wOOx Alarm Clock Radio for Apple iPod / iPhone for $60 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



6 Comments