Questions tagged [ruby-cocoa]
24 questions
1
vote
2 answers
mysql gem for snow leopard
I had trouble with the gem at first but got it to work when I installed the 64-bit MySQL and reinsatlled the gem with arch flags.
So it work in rails. The error I used to get was
uninitialized constant MysqlCompat::MysqlRes
but that is now gone…

Will
- 8,102
- 5
- 30
- 32
0
votes
1 answer
How to read a global selection using MacRuby?
How can I read a global UI selection within MacRuby? For instance, of selected text in Preview.
Having no experience in Ruby and Cocoa, I've decided to take a plunge and to write a small dictionary app to aid myself with translation. All the pieces…
0
votes
2 answers
Discover the environment and relative path of the running application
While playing with RubyCocoa, I keep progressing with my idea for my application. Because my application will be going to use configuration files, I would like to know how I discover the relative path to store these inside my application structure…

Shyam
- 2,357
- 8
- 32
- 44
0
votes
1 answer
Invoking external shell application through RubyCocoa
How would I invoke an external application through the RubyCocoa bridge? I read something about NSTask, yet I have no idea how this should be translated in RubyCocoa. My goal is to have an IB_action to trigger a method which will run a terminal…

Shyam
- 2,357
- 8
- 32
- 44
0
votes
1 answer
NULL in a RubyCocoa application?
I'm creating an application in RubyCocoa and I have this code:
fileContents = OSX::NSAttributedString.alloc.initWithData_options_documentAttributes_error_(data, null, null, outError)
It gives me this error:
2009-12-31 19:42:54.317 Ruby…
user142019
0
votes
1 answer
RubyCocoa on PowerPC G5 processor (Leopard 10.5.7)
Does anybody know which version of RubyCocoa runs on this processor (if at all)?

Nava Carmon
- 4,523
- 3
- 40
- 74
0
votes
2 answers
rubycocoa 0.13.2, snow leopard & ruby 1.8.7
I have a rubyCocoa project, that was written for ruby 1.8.6, RubyCocoa version 0.13.2. The class tree is built from a xcdatamodel. I'm trying to migrate it to Snow Leopard. When trying to run, the program enters the endless loop, because it fails on…

Nava Carmon
- 4,523
- 3
- 40
- 74
0
votes
1 answer
Asynchronous methods in RubyCocoa
I understand that it isn't possible/sensible to use threads in RubyCocoa. However it is possible to use asynchronous Cocoa methods to avoid blocking user interface events.
I've successfully used a method on NSURLConnection to send an HTTP request…

James Mead
- 3,472
- 19
- 17
-2
votes
1 answer
autorelease pool causes crash in RubyCocoa application
I'm having crash in my application, which says
trying to pop an unknown autorelease pool:
10/19/09 11:40:11 AM MyApp[89480] *** attempt to pop an unknown
autorelease pool (0x11bc800)
How to trace it down?
Since it's RubyCocoa application it's almost…

Nava Carmon
- 4,523
- 3
- 40
- 74