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
0
votes
3 answers

Stream coredata to remote REST end-point

There are several apps that I use on my Mac that store their data in core data. I can see the data I want in CoreDataPro. I want that data - specifically I want to send changes in that to some remote end points (such as Zapier, or some other REST…
Martin Cleaver
  • 909
  • 8
  • 21
0
votes
0 answers

xcode macruby application clang error

I am using XCode 5.0 under Mac OS X 10.9. Everytime when i create an macruby application the MacRuby.framework is shown red. After re-adding the path to the framework it isn't red but everytime when i try to build my test application (nothing…
bladepit
  • 853
  • 5
  • 14
  • 29
0
votes
1 answer

How do I set the number of copies for printing in macuby?

I need to make a small change to a function in a macruby project. In particular I need to print 2 copies of a document, instead of one. I'm a complete macruby (and objective C/cocoa) noob and have no idea how to do this. I have a print_settings…
Brian
  • 2,499
  • 3
  • 24
  • 26
0
votes
1 answer

Differences between Keyword Arguments in Ruby 2.0 and Interleaved method signatures in Objective-C

I've been playing with MacRuby, and noticing how it extends Ruby to be able to handle the Smalltalk-like method (or message) signatures of Objective-C. At first glance, I thought that it looked a lot like the new Keyword Arguments of Ruby 2.0, but…
Michael Dorst
  • 8,210
  • 11
  • 44
  • 71
0
votes
1 answer

RubyMotion : SecKeychainFindGenericPassword & Can't find pointer description for type '^'

I'm trying to retrieve a password from a keychain with rubyMotion, on OS X I tried this : # passsword_data_pointer=Pointer.new(:object) #works but empty password # password_data_pointer=Pointer.new('^') #makes ruby crash and complain 'Can't find…
MichaelC
  • 357
  • 2
  • 12
0
votes
1 answer

Pointers in RubyMotion vs Pointers in MacRuby

this works in MacRuby (having required 'Security' framework) error=SecKeychainAddGenericPassword( nil, "someservice".length, "someservice", …
MichaelC
  • 357
  • 2
  • 12
0
votes
3 answers

Program that uses Mac status bar

I'm looking to make a program that would have an icon and drop-down menu on the status bar. Are there any resources on how to do this? I'd prefer building it in Ruby, but I also wouldn't mind doing it in Python, C++ or Bash (if possible).
JShoe
  • 3,186
  • 9
  • 38
  • 61
0
votes
1 answer

MacRuby Pointer to typedef struct

this code fails with Semgentation Fault: 11, and I can't understand why framework 'Cocoa' framework 'CoreFoundation' framework 'Security' * keychainObject =…
MichaelC
  • 357
  • 2
  • 12
0
votes
1 answer

NSAppleEventDescriptor encoding

The following block is the NSData representation of NSAppleEventDescriptor I get as return of calling NSAppleScript. What is the encoding of the NSData block and how should I convert it to NSString data is <646c6532 00000000 6c697374…
David Kramf
  • 207
  • 2
  • 9
0
votes
1 answer

How to set custom gcc options when compiling with MacRuby?

I'm trying to compile a simple ruby script to an executable with MacRuby. The issue I'm having is that the executable compiled on Mac OS 10.8.3 doesn't work on 10.7.x (I get an Illegal instruction: 4 error). It seems that I have to pass an option to…
ddario
  • 1,015
  • 3
  • 12
  • 25
0
votes
1 answer

Why does requiring 'watir-webdriver' in my macruby application in xcode cause this error?

I have installed watir-webdriver via macgem in root and in user, I have required rubygems and included /Library/Frameworks recursively in my framework search path in build settings for this project. require 'rubygems' runs without a problem require…
0
votes
1 answer

Macruby get an object to notify AppDelegate when its completed a task

I am super new to Macruby and I'm trying to write a small app that sends post data to an api and then displays the response in text field. I have gotten as far as collecting, sending the data and having the response output to the console using this…
Stewart Knapman
  • 155
  • 1
  • 2
  • 11
0
votes
1 answer

How to implement a NSTabView delegate with MacRuby?

I try to set an NSTabView delegate using MacRuby with XCode, but I can't figure how to write the delegate. I use: def intialize @tab_changed.delegate = self end def tabViewdidSelectTabViewItem(a_notification) puts "tab has changed" end Then in the…
scandella
  • 21
  • 3
0
votes
1 answer

NoMethodError with MacRuby call to objective-c method

I'm trying to call and objective-c method from a MacRuby application and it works fine as long as I only have one variable in the method. If I add a second variable I get a NoMethodError. I have a feeling this is something small, but I can't seem to…
tsugua
  • 197
  • 1
  • 13
0
votes
1 answer

Pointers for data returned by delegate methods in MacRuby

I'm working on a small MacRuby project, using 0.5b1, which is implementing the delegate methods required for Growl (the app is using Growl for notifications). I would like to be able to respond to the Growl callbacks when the notification is…
Matthew Savage
  • 3,794
  • 10
  • 43
  • 53