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
7
votes
6 answers

Interface Builder not Seeing Outlets with MacRuby

I am trying to get a basic hello world application going using XCode and Interface Builder. However, in Interface Builder I can't see my outlets to wire things up with. I go to the connections tab of the objects inspector pane and it says "New…
Buddy Lindsey
  • 3,560
  • 6
  • 30
  • 42
7
votes
3 answers

Getting source HTML from a WebView in Cocoa

I'm working on a OS X program where the user does some light WYSIWYG HTML editing in a WebView. Being new to programming with Cocoa and WebKit, I have absolutely no idea how to get selected text from a WebView - the intention being to take what the…
Jim C
  • 81
  • 1
  • 4
6
votes
3 answers

Can't submit Mac app via xcode4 - Invalid Signature

I keep getting this error: Invalid Signature - This error occurs when you have signed your app's installer incorrectly. There are two certs required for this process: the "3rd Party Mac Developer Application" cert and the "3rd Party Mac Developer…
A4J
  • 879
  • 10
  • 24
6
votes
4 answers

Escaping Line-Returns/End-of-Line in ERB templates

I need to be able to format unprinted logic lines in ERB without affecting the eventual text output of the template. At this point, I don't think that ERB supports such escaping. This is my first major Ruby project. I am writing a code generator. My…
TechZen
  • 64,370
  • 15
  • 118
  • 145
6
votes
3 answers

Good resources to learn MacRuby

I do not know Ruby and I am interested to learn MacRuby. What would you recommend as your best resource (books, blogs, sites)? Found:http://www.macruby.org/ More info her from rubyconf.org Macruby talk
Kb.
  • 7,240
  • 13
  • 56
  • 75
6
votes
3 answers

Getting the main window of an app via an NSRunningApplication instance

I'm observing NSWorkspaceDidDeactivateApplicationNotification notification to get the application that has just lost focus. I'm ending up with an instance of NSRunningApplication which you get from the userInfo dictionary key -…
Alistair Holt
  • 1,432
  • 3
  • 17
  • 28
5
votes
2 answers

How to run shell commands from a Mac/MacRuby application?

I am trying to write a little MacRuby status bar application that runs a command from the command line and displays the output. I don't know how to do this. How can I do this from my Mac application? Update: The other thing that it might need to do…
Andrew
  • 227,796
  • 193
  • 515
  • 708
5
votes
1 answer

Ruby: How to handle a Failed or Invalid Initialization

What is the ruby best practice for handling a situation in which an object should fail to initialize owing to being passed invalid initialize arguments? I realize that in ruby, duck typing means that we're not supposed to be overly concerned with…
TechZen
  • 64,370
  • 15
  • 118
  • 145
5
votes
2 answers

MacRuby+IronRuby or JRuby for Desktop Applications?

For Web Applications I use Ruby on Rails. And now it's time to see if I can code Desktop Applications with Ruby. So I wonder which one I should choose. The way I see it is MacRuby+IronRuby vs JRuby. The former lets me have desktop applications for…
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
5
votes
7 answers

How can I discover what apps are installed on OS X using Objective C or Macruby?

could you tell me please - which object and which method can i use to fetch information about installed applications on OSX with objective c or macruby?
Alexey Poimtsev
  • 2,845
  • 3
  • 35
  • 63
5
votes
1 answer

Can gems be used by ruby code compiled with macrubyc

MacRuby 0.5 includes a ruby compiler built on LLVM called macrubyc. Does anyone know if it would be possible to dynamically load gems from compiled code? Or compile the gems and link them in? Is this planned? Or how compiled code will be able to…
sal
  • 23,373
  • 15
  • 66
  • 85
5
votes
3 answers

Code completion for MacRuby/PyObjC/RubyMotion

One of Xcode's most powerful features is it's Intellisense completion, which brings up a list of potential candidates as you type the name of a Foundation/Cocoa/UIKit API. I am very interested in MacRuby, PyObjC, or the more recent RubyMotion,…
Brian Gesiak
  • 6,648
  • 4
  • 35
  • 50
4
votes
1 answer

Trouble with drag events in MacRuby app

It's been a while since I've done any Cocoa development, and I'm trying to get this very quick and dirty (and simple) app wrapped up. I decided to use MacRuby because it was a good excuse to learn it, and the app is simple enough that it made…
Farski
  • 1,670
  • 3
  • 15
  • 30
4
votes
2 answers

How can I compile a standalone Ruby script into a standalone AOT compiled macruby executable?

How can I compile a standalone Ruby script into a standalone AOT compiled macruby executable? I would like to write a command line tool in MacRuby that can be distributed.
dan
  • 43,914
  • 47
  • 153
  • 254
4
votes
3 answers

Grand Central Dispatch: Queue vs Semaphore for controlling access to a data structure?

I'm doing this with Macruby, but I don't think that should matter much here. I've got a model which stores its state in a dictionary data structure. I want concurrent operations to be updating this data structure sporadically. It seems to me like…
1
2
3
14 15