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
2
votes
1 answer

Sinatra and MacRuby not working

Can't seem to get Sinatra and MacRuby/control_tower to work together. My sinatra server is pretty simple (main.rb): require 'rubygems' require 'sinatra' get "/" do "Hello World!" end With a very simple RackUp file (config.ru): require 'main' run…
jpoz
  • 2,257
  • 1
  • 23
  • 29
2
votes
1 answer

MacRuby: load cocoa bundle

I created a custom cocoa bundle. But when i try to load the bundle into MacRuby project,I get the following err dyld: Library not loaded: audio_streamer.bundle Referenced from:…
2
votes
2 answers

Using ASIHTTPRequest to download a file with Cocoa/MacRuby

I'm still trying to get a handle on Cocoa (both in Obj-C and MacRuby), and I'd really appreciate seeing how to download a file with ASIHTTPRequest (or without it) and MacRuby. Ideally, I'd like to be able show the progress inside a progress bar…
arbales
  • 5,466
  • 4
  • 33
  • 40
2
votes
2 answers

Do I need RubyCocoaBridge or MacRuby or both to develop in Ruby for the iPad?

I've heard both MacRuby and Ruby CocoaBridge discussed in relation to iPhone/iPad development in Ruby. Do I need one or both of these?
glanden
  • 1,639
  • 2
  • 11
  • 6
2
votes
3 answers

How to use Obj-C classes in MacRuby

I am trying to use an external Obj-C class in my MacRuby project, but I can't figure out how to import it. Specifically, I want to use ObjectiveResource inside a MacRuby 0.5 project (since ActiveResource doesn't work - yet). I have gotten as far as…
beno1604
  • 891
  • 9
  • 9
2
votes
1 answer

When aiming to AOT compile a ruby script with MacRuby is there any restriction on the language?

I am looking into using MacRuby and am interested in it's ability to AOT compile ruby code down to an executable. I am wondering though whether this places a restriction on the code in any way? Is there a subset of ruby which is supported or can i…
Roja Buck
  • 2,354
  • 16
  • 26
2
votes
1 answer

Os x Mavericks ruby app

Does anyone know how to package and develop a ruby application? Python has pyobjc, Ruby used to have macruby but that does not seem to support OS X Mavericks. Hence I'm looking for alternatives. I'd like to build an app using ruby (and cocoa) but…
lostAstronaut
  • 1,331
  • 5
  • 20
  • 34
2
votes
2 answers

Macruby on OS X Mavericks

I'm running OS X Mavericks and installed MacRuby last week in order to make a simple app in it. Anything I try to run in Xcode (even Hello World app or a downloaded example), I always get "Build Failed" and really similar errors to this: I found in…
kellins
  • 90
  • 9
2
votes
1 answer

MacRuby pointer, referencing, dereferencing when using Cocoa Frameworks

On MacRuby Pointer to typedef struct, I learnt how to dereference a pointer created with x=Pointer.new_with_type ... ==> use x.value, or x[0] Works a treat ! Now I want to learn what I believe to be the "opposite". I'm trying to use this…
MichaelC
  • 357
  • 2
  • 12
2
votes
3 answers

Viability of Ruby for Cross-Platform Development With Native Toolkits?

Let's say that I was writing a closed sourced commercial piece of software which was to be deployed in the following situations: Windows Desktop App built on .Net, ActiveX control, Windows Netscape plugin, Mac Desktop App built on Cocoa, Mac…
Glenn Howes
  • 5,447
  • 2
  • 25
  • 29
2
votes
1 answer

How to add badges to a source list?

I just wanted to know how to to implement badges like in the mail app from osx to my application without using PxSourceList : http://grab.by/nJ66 My app is developed with rubymotion for os x. Thanks in advance.
Raitom
  • 33
  • 1
  • 5
2
votes
3 answers

Change Ruby program into simple Desktop Mac App

I have a program that reads the data in a file, changes certain elements, and creates a new file. The code looks like this: lines = IO.readlines('single_before_CAP.txt').map do |line| a = line.split.each { |i| i.capitalize! } a2 = a.join("…
2
votes
1 answer

Calling Ruby classes/scripts from Objective C - is MacRuby an overkill?

I want to call certain Ruby libraries (natural language processing) from Objective C ( it's a Mac OSX app). I would like however to keep the most of the programming in Objective C, using Ruby only to use that particular library that is in Ruby. I…
Stpn
  • 6,202
  • 7
  • 47
  • 94
2
votes
3 answers

macruby AVPlayer addBoundaryTimeObserverForTimes

I have a strange problem with adding observer for boundary time using AVFoundation AVPlayer. player = AVPlayer.playerWithURL(NSURL.URLWithString(someurl)) player.play() …
iceraven
  • 21
  • 1
  • 4
2
votes
0 answers

MacRuby gem signature is invalide

I'm using Xcode 4.5.2 and MacRuby 0.12. I need to use the Spreadsheet gem, but I keep having a "signature" issue when I try to execute my program : /Library/Ruby/Gems/MacRuby/0.13/gems/ruby-ole-1.2.11.5/lib/ole/storage/base.rb:372:in `validate!':…
scandella
  • 21
  • 3