Questions tagged [macruby]

MacRuby is an implementation of the Ruby 1.9 programming language in ObjC for Mac OSX

MacRuby is an implementation of Ruby 1.9 directly on top of Mac OS X core technologies such as the Objective-C runtime and garbage collector, the LLVM compiler infrastructure and the Foundation and ICU frameworks. It is the goal of MacRuby to enable the creation of full-fledged Mac OS X applications which do not sacrifice performance in order to enjoy the benefits of using Ruby.

http://macruby.org/

221 questions
4
votes
2 answers

Simple persistence framework compatible with macruby?

I'm running into problems using macruby with ActiveRecord (w/ sqlite3) or Sequel. Any other suggestions? I need a simple lightweight persistence mechanism to embed within my application that can handle less than 5 tables and at most low tens of…
Stephen Petschulat
  • 1,159
  • 2
  • 14
  • 23
4
votes
1 answer

MacRuby - ActiveRecord for storage?

Is it possible to use ActiveRecord for storage and query in a MacRuby Cocoa application? If it is, are there any resources that shows how? Are there any reason why ActiveRecord should not be used?
Vegar
  • 12,828
  • 16
  • 85
  • 151
4
votes
4 answers

PyObjC / Ruby bridge. Is it worthwhile ?

Years ago wanting to write Mac software and having loads of experience with Java WebObjects I tried the java bridge but decided to bite the bullet and learn Objective-C (fortunately since I would have hated having my software deprecated with the…
team-rf
  • 241
  • 1
  • 7
4
votes
2 answers

How to get progress of interactive program from ruby?

I'm trying to create a macruby app that calls a rsync script with the --progress argument, but the way rsync displays its progress is by changing the same line, not adding new lines to its output, so how can I grab this data?
Marcel M.
  • 2,376
  • 2
  • 18
  • 24
4
votes
5 answers

What languages besides Objective-C will generate application code that works on an iPad?

I would like to write an app for the iPad but I can't stand Objective-C. Is there a language generator that would spit out Objective-C but let me write my iPad application in another language? I've heard a little about MacRuby and am curious whether…
glanden
  • 1,639
  • 2
  • 11
  • 6
4
votes
1 answer

FSEvents in MacRuby: wrong callback is executed

I'm working on GUI app in MacRuby and I need to use FSEvents. I'm registering a couple of streams for different directories. Changes in any of those directories result in running a callback, but there's a big issue: no matter which directory…
Jan Dudek
  • 807
  • 1
  • 9
  • 17
3
votes
1 answer

MacRuby: conforming to protocols

I'm new to MacRuby (and Objective-C). Reading through some of the Cocoa documentation, I keep coming across parts that mention delegates conforming to protocols. So far, I keep setting my AppDelegate as the protocol for anything that talks about a…
Andrew
  • 227,796
  • 193
  • 515
  • 708
3
votes
2 answers

Remap Capslock Key in Keymando?

Can you remap the CapsLock key in Keymando? CapsLock is listed as an available key but when I try a test like: map "" { alert("CapsLock-j") } ... and hit Reload Config in the Keymando menu, I get an error dialog that says: Error…
TechZen
  • 64,370
  • 15
  • 118
  • 145
3
votes
1 answer

How can I have an NSDocument-based app open Folders, but save associated doc to Application Support?

In my NSDocument based app, my documents are to be associated with directories (they are an index of the directory) I want to be able to open/save documents according to the following use case: Opening a directory: a) if there is a .myapp file in…
Michael Johnston
  • 5,298
  • 1
  • 29
  • 37
3
votes
2 answers

Do I need to create a local service for this application design?

I have a situation where I'm using MacRuby for a thin local gui, and most of the work is done in a Parser object that I've created. I will eventually also have an IronRuby thin client, that will also interact with the Parser object. I turned the…
Jeremy Smith
  • 14,727
  • 19
  • 67
  • 114
3
votes
2 answers

NSURL.URLByResolvingSymlinksInPath does not work for /tmp, /var. Is there a workaround?

(code examples in macruby syntax) If I create an url with: u1 = NSURL.fileURLWithPath('/tmp') and then try to create an url with symlinks resolved: u2=u1.URLByResolvingSymlinksInPath I get back /tmp: irb(main):010:0> u2.pathComponents => ["/",…
Michael Johnston
  • 5,298
  • 1
  • 29
  • 37
3
votes
1 answer

Why are my Macruby pointers not surviving being passed as void pointers?

I've implemented the selector alertDidEnd:returnCode:contextInfo:. The last parameter, contextInfo, is a void pointer. Before calling the method I put the pointer together as follows. # in windowShouldClose p =…
Ziggy
  • 21,845
  • 28
  • 75
  • 104
3
votes
3 answers

High performance calculations with Ruby?

My colleagues normally use C or Fortran for high performance calculations (math on large arrays of data). I wonder if there is any possibility for Ruby code to be compiled/converted and come close to optimized C code in terms of performance? There…
Andrei
  • 10,918
  • 12
  • 76
  • 110
3
votes
1 answer

MacRuby HotCocoa $ macrake // error

Even though I can compile and run a simple hotcocoa code by doing , it won't rake auto-generated hotcocoa code. I'm running Mac OS X Lion and XCode for Lion (I'm not even using XCode for hotcocoa, though.) Any solution for this? $ hotcocoa test $ cd…
user292071
  • 81
  • 1
  • 1
  • 3
3
votes
2 answers

How do I get Textmate to use MacRuby?

So, how do I get Textmate to use MacRuby, a branch of 1.9.2, instead of the default Ruby in OSX, 1.8.7?
johnrubythecat
  • 1,003
  • 1
  • 13
  • 31
1 2
3
14 15