Pure Ruby App that receives events

P

Perry Smith

Does anyone know if it is possible to have a Ruby application that
receives Apple Events? I assume it would be in an event loop. Really,
what I'm asking is if I can create a pure Ruby app that behaves like a
"first class" application as Apple has promised.

Thank you,
pedz
 
D

Dolazy

Does anyone know if it is possible to have a Ruby application that
receives Apple Events?  I assume it would be in an event loop.  Really,
what I'm asking is if I can create a pure Ruby app that behaves like a
"first class" application as Apple has promised.

It may not be a bad idea to do a few standard Cocoa with Objective-C
tutorials and familiarize yourself with the framework a bit.

If you want to use Ruby there is a Cocoa wrapper called RubyCocoa, it
is supported by Apple:
http://developer.apple.com/document...ubyPythonCocoa/Introduction/Introduction.html

I found one article that seems to deal with events:
http://codeintensity.blogspot.com/2008/01/rubycocoa-rocks.html

HTH

Francis
 
H

hengist podd

Dolazy said:
I found one article that seems to deal with events:
http://codeintensity.blogspot.com/2008/01/rubycocoa-rocks.html

Installing event handlers via NSAppleEventManager is fine for simple
tasks. For full-blown scripting interfaces that expose a query-able
object model a-la Finder, Mail, etc., Cocoa Scripting would be more
appropriate (if a bear to get right). Matt Neuburg - who often lurks
around this list - would be the best person to speak to.

HTH

has
 
J

John Joyce

Installing event handlers via NSAppleEventManager is fine for simple
tasks. For full-blown scripting interfaces that expose a query-able
object model a-la Finder, Mail, etc., Cocoa Scripting would be more
appropriate (if a bear to get right). Matt Neuburg - who often lurks
around this list - would be the best person to speak to.

HTH

has
Also take a look at MacRuby
It is still in it's formative stages, but is the next level of
bridging Ruby and Cocoa.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top