Re: [MacRuby-devel] Mixing Objective-C and Ruby classes

2009-05-20 Thread isaac kearse
Hi Brian, I tried running your minimal app but it crashed with a similar error. Here are all the gory details (including Problem Details and System Profile from the crash reporter): http://gist.github.com/114723 I have also put the whole directory structure for the minimal hotcocoa app on github

[MacRuby-devel] Crash with NSUInteger in delegate method

2009-05-20 Thread Łukasz Adamczak
Don't know if it deserves a ticket, so I'm posting here first. I'm trying to use ObjectiveFlickr from my MacRuby project: http://github.com/czak/flickrtest One of the ObjectiveFlickr delegate methods receives NSUIntegers from the library: http://github.com/lukhnos/objectiveflickr/blob/b480aa39fa0

[MacRuby-devel] [MacRuby] #256: Compilation is broken

2009-05-20 Thread MacRuby
#256: Compilation is broken +--- Reporter: hipertrac...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milest

Re: [MacRuby-devel] [MacRuby] #256: Compilation is broken

2009-05-20 Thread MacRuby
#256: Compilation is broken +--- Reporter: hipertrac...@… |Owner: lsansone...@… Type: defect | Status: closed Priority: blocker |Mil

Re: [MacRuby-devel] Mixing Objective-C and Ruby classes

2009-05-20 Thread Brian Chapados
I didn't use the hotcocoa cli interface to generate the file, so I don't have a Rakefile or anything. I just used a text editor and followed an old example[1]. Try putting the ruby code into a file called 'shortcutapp.rb' and type: [1]: http://andymatuschak.org/articles/2008/09/12/hotcocoa-is-pre

Re: [MacRuby-devel] Mixing Objective-C and Ruby classes

2009-05-20 Thread Brian Chapados
I was able to reproduce your bug, and have a fix. This was somewhat obscure, but RTFM to the rescue... Note that GetApplicationEventTarget is not available on 64-bit systems (see Notes in the docs): http://developer.apple.com/documentation/Carbon/Reference/Carbon_Event_Manager_Ref/Reference/refere

Re: [MacRuby-devel] Mixing Objective-C and Ruby classes

2009-05-20 Thread isaac kearse
Brian you are a legend,That works perfectly, no errors or warnings. I think I might have run into a similar issue when I tried to compile this framework: http://github.com/Caged/aixmlserialize/tree/master (NSXMLDocument => NSDictionary conversion) I ended up just extracting the one method that I w

[MacRuby-devel] Adobe Illustrator scripting with MacRuby

2009-05-20 Thread Chris Brown
Can anyone post an example of how to add (1) a layer and (2) a path object to an Adobe Illustrator document? I am able to do these things using rb-appscript with Ruby 1.8, but have not been successful with MacRuby and ScriptingBridge. I have also failed trying to get appscript to work with

Re: [MacRuby-devel] [MacRuby] #256: Compilation is broken

2009-05-20 Thread MacRuby
#256: Compilation is broken +--- Reporter: hipertrac...@… |Owner: lsansone...@… Type: defect | Status: closed Priority: blocker |Mil