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
27
votes
4 answers

Can you use MacRuby to develop applications for the Mac App Store?

I have some basic familiarity with Objective-C, but prefer Ruby, so I'm thinking of playing around with MacRuby. Is it possible to use MacRuby to develop applications for the Mac App Store, or do I have to use Objective-C? (Note that I don't care so…
grautur
  • 29,955
  • 34
  • 93
  • 128
22
votes
3 answers

Using MacRuby for developing iPhone apps

I'm looking to build an iPhone app, but I don't have enough time to learn Objective-C. I already know Ruby and discovered MacRuby. Is it possible to build an iPhone app using MacRuby alone, without any knowledge of Objective-C?
picardo
  • 24,530
  • 33
  • 104
  • 151
22
votes
7 answers

How can a nested class access a method in the outer class in Ruby?

def class A def a raise "hi" #can't be reached end class B def b a() #doesn't find method a. end end end I want to invoke a from b and raise the exception. How can I?
nes1983
  • 15,209
  • 4
  • 44
  • 64
18
votes
2 answers

Where is ruby stored on mac?

I am looking for a path of where ruby gets stored on mac? I installed macruby on my mac and I am trying to see where it got installed. I want to include the path of macruby in my ruby script. When I do rvm list, I get: => macruby-0.12 [ i686 ] *…
tech_human
  • 6,592
  • 16
  • 65
  • 107
16
votes
3 answers

Should I learn MacRuby or RubyCocoa

I am wanting to learn mac development with ruby but I'm not sure which one to go at. RubyCocoa has been around longer but I think MacRuby will beat it out in the long run.. Any suggestions??
user73481
  • 901
  • 2
  • 9
  • 15
16
votes
2 answers

How can I preset the filename in NSSavePanel?

NSSavePanel used to have a runModalForDirectory:file: method which let you preset the directory and filename for a save panel. But that is deprecated in 10.6 When creating an NSSavePanel, how can I preset the filename without using the deprecated…
Michael Johnston
  • 5,298
  • 1
  • 29
  • 37
15
votes
5 answers

Using Gems with MacRuby

How do you use gems from a MacRuby .5 application on Snow Leopard? Do I need to specify the gem path? If so, how do I do this? Best scenario is to package the gems inside the application so the user would not have to install them when the app is…
Craig Williams
  • 418
  • 4
  • 13
12
votes
2 answers

What values for RUBY_ENGINE correspond to which Ruby implementations?

The method I know of to detect the Ruby implementation (e.g., MRI, JRuby, Rubinius, etc.) at run time is to check the global constant RUBY_ENGINE: $ ruby -e 'puts RUBY_ENGINE' ruby What's a reasonably comprehensive list of known Ruby…
jwfearn
  • 28,781
  • 28
  • 95
  • 122
10
votes
2 answers

Ruby gui for Desktop apps

After long hours googling around, I'm wondering if there really exists a maintained gui based on Ruby. Here are the one I checked: Shoes: I'm not feeling like I could create rock solid platform with it Cocoa and MacRuby: no fresh news, almost no…
apneadiving
  • 114,565
  • 26
  • 219
  • 213
10
votes
2 answers

Xcode 4.4 + MacRuby = "macruby.h not found" (OS X 10.8 Mountain Lion)

I get the following error when trying to run a basic "Hello world" application in MacRuby on Xcode 4.4 in OS X 10.8 Mountain Lion: "macruby.h not found" How to resolve this problem?
user456584
  • 86,427
  • 15
  • 75
  • 107
9
votes
1 answer

Use MacRuby Debugger in Xcode?

Is there anyway to use the MacRuby debugger macrubyd when developing a MacRuby app within Xcode? As far as I can tell you can't do so even from the terminal. I've thought of kludgy work around but I wanted to double-check the situation before I…
TechZen
  • 64,370
  • 15
  • 118
  • 145
9
votes
3 answers

os x equivalent to ios's rootViewController

What would be the OS X equivalent of ios' (Ruby style) : @window.rootViewController = NSViewController.alloc.initWithNibName(nil, bundle: nil) There are two aspects : dealing with the absence of rootViewController in os x doing the equivalent of…
MichaelC
  • 357
  • 2
  • 12
8
votes
6 answers

Could MacRuby / HotCocoa supplant the need to know Objective-C?

I just discovered MacRuby / HotCocoa and really like the sound of what they're doing. I had essentially discounted the prospect of making Cocoa GUI applications myself because I have an aversion to spending time & effort learning yet another C-based…
xyz
  • 27,223
  • 29
  • 105
  • 125
8
votes
6 answers

Uninstall MacRuby

Does anyone know how to uninstall MacRuby? I was using RubyCocoa then decided to try out MacRuby, after installing MacRuby, RubyCocoa has stopped working. So I would like to remove MacRuby, but I cannot find any documentation on how to uninstall…
Kaom Te
  • 774
  • 1
  • 8
  • 17
7
votes
2 answers

Getting started with MacRuby and Xcode 4.2

I recently thought of getting started with MacRuby. I've installed Xcode 4.2 and i've installed MacRuby, but apparently i am missing something. In every tutorial i found so far it says, that i have to choose "MacRuby Application" from the Xcode…
aurora
  • 9,607
  • 7
  • 36
  • 54
1
2 3
14 15