Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Frisco Del Rosario
On Apr 3, 2009, at 4:48 PM, Frisco Del Rosario wrote: I'm going to follow Steinberg's directions to build that little app with his supplied Obj-C code. I did that, and it worked. Then I compared all the files in the Obj-C project to the MacRuby project, and translated (again) the delegate

Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Frisco Del Rosario
I guess the another thing to check is that you have actually set your class (with the code below) to be the delegate in IB? Yup. I'm going to follow Steinberg's directions to build that little app with his supplied Obj-C code. Perhaps I should be working with Hillegass's vol. 3 instead. Bec

Re: [MacRuby-devel] Macruby.framwork into Bundle

2009-04-03 Thread Laurent Sansonetti
Hi Markus, On Mar 31, 2009, at 11:29 AM, Markus Werner wrote: Hello List, I used the tutorial and tried to put the Macruby.framework into my Bundle. The executable already contains the right "path" to the framework and I copied the Run Script from "Embeded Mac Ruby Target" to my regular

Re: [MacRuby-devel] Accessing Obj-C InstVars from Ruby

2009-04-03 Thread Laurent Sansonetti
On Apr 1, 2009, at 8:07 AM, Benjamin Stiglitz wrote: Is there a way to access instance variables defined in an Objective-C class from a Ruby extension? It is currently not implemented, but it's technically possible. A good work-around is to define accessors (properties) as John mentione

Re: [MacRuby-devel] How to use Accessibility API?

2009-04-03 Thread Laurent Sansonetti
Hi Benjamin. On Apr 2, 2009, at 5:08 AM, Benjamin Mollenhauer wrote: Hi, i tried unsuccessfuly to use functions like "AXUIElementCopyAttributeValue" from the Accessibility API. /System/Library/Frameworks/ApplicationServices.framework/‍ Frameworks/HIServices.framework/ If I include "fram

Re: [MacRuby-devel] Trac ticket 232

2009-04-03 Thread Laurent Sansonetti
Applied in both trunk and branches/experimental. Thanks for the patch Jason! Laurent On Apr 1, 2009, at 6:26 PM, Jason Morrison wrote: Attaching patch to chmod 0755 the executables. On Wed, Apr 1, 2009 at 9:03 PM, Jason Morrison wrote: Hi MacRuby, I built MacRuby 0.4 from SVN on OSX 10.5

Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Laurent Sansonetti
On Apr 3, 2009, at 4:25 AM, Frisco Del Rosario wrote: Brad Wilson: > This is untested, but I'd suggest trying: > def webView(sender, didReceiveTitle:title, forFrame:frame) >sender.window.setTitle(title) > end FYI, you can also write sender.window.title = title As for the method not bei

Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread John Shea
I guess the another thing to check is that you have actually set your class (with the code below) to be the delegate in IB? On Apr 3, 2009, at 14:56 , Brad Wilson wrote: Haha I am out of ideas sorry Frisco. Good luck with it! On 03/04/2009, at 10:25 PM, Frisco Del Rosario wrote: Brad Wils

Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Brad Wilson
Haha I am out of ideas sorry Frisco. Good luck with it! On 03/04/2009, at 10:25 PM, Frisco Del Rosario wrote: Brad Wilson: > This is untested, but I'd suggest trying: > def webView(sender, didReceiveTitle:title, forFrame:frame) >sender.window.setTitle(title) > end > Does that sound right

Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Frisco Del Rosario
Brad Wilson: > This is untested, but I'd suggest trying: > def webView(sender, didReceiveTitle:title, forFrame:frame) >sender.window.setTitle(title) > end > Does that sound right to anybody else? Eloy Duran: > Yep that's correct. Though Brad's suggestion did not result in the delegate method

Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Eloy Duran
I think you've translated that a little wrong. This is untested, but I'd suggest trying: def webView(sender, didReceiveTitle:title, forFrame:frame) sender.window.setTitle(title) end Does that sound right to anybody else? The method name should be the bit after the first ), and before

Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Brad Wilson
I think you've translated that a little wrong. This is untested, but I'd suggest trying: def webView(sender, didReceiveTitle:title, forFrame:frame) sender.window.setTitle(title) end Does that sound right to anybody else? The method name should be the bit after the first ), and before

Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Frisco Del Rosario
On Thu, Apr 2, 2009 at 1:11 PM , John Shea wrote: if you look about a quarter of the way down this page ( the introductory tutorial) http://www.macruby.org/documentation/tutorial.html you will see it all explained.