[MacRuby-devel] Delegate methods defined in modules

Laurent Sansonetti lsansonetti at apple.com
Wed May 21 23:22:59 PDT 2008


Thank you for noticing me, I incidentally introduced a regression in  
the previous change. I fixed the problem in r207. Now the make target  
should pass, as well as the concerned tests.

Regarding the the reply-to, I am looking at this right now...

Laurent

On May 21, 2008, at 9:45 PM, Zach Holt wrote:

> Whoops.  I sent this to you alone.  Would it be possible to get the  
> reply-to set to the list?
>
> On May 21, 2008, at 6:53 PM, Zach Holt wrote:
>
>> Thanks, Laurent.
>>
>> On a clean checkout of trunk at 206, I get
>>
>> ./ext/extmk.rb:315:in `<main>': undefined method `parse_args' for  
>> main:Object (NoMethodError)
>>
>> Odd, since parse_args is defined immediately before the call (lines  
>> 242-313).
>>
>> Cheers,
>> Zach
>>
>> On May 21, 2008, at 6:11 PM, Laurent Sansonetti wrote:
>>
>>> Hi Zach,
>>>
>>> Should be fixed in r206. Thanks for the report.
>>>
>>> Laurent
>>>
>>> On May 21, 2008, at 10:42 AM, Zach Holt wrote:
>>>
>>>> #!/usr/bin/env macruby
>>>> framework 'cocoa'
>>>>
>>>> module AppDelegateModule
>>>> def applicationDidFinishLaunching( n )
>>>>  puts "exiting..."
>>>>  NSApp.terminate( nil )
>>>> end
>>>> end
>>>>
>>>> class AppDelegateClass
>>>> include AppDelegateModule
>>>> end
>>>>
>>>> NSApplication.sharedApplication
>>>> NSApp.delegate = AppDelegateClass.new
>>>> NSApp.run
>>>> __END__
>>>>
>>>>
>>>> Hi all,
>>>>
>>>> I'm porting http://www.paulhammond.org/webkit2png/ as a learning
>>>> exercise.
>>>>
>>>> Should the above terminate?
>>>>
>>>> It doesn't on trunk rev 202, but it does if you move
>>>> applicationDidFinishLaunching to AppDelegateClass.
>>>>
>>>> Thanks!
>>>>
>>>> _______________________________________________
>>>> MacRuby-devel mailing list
>>>> MacRuby-devel at lists.macosforge.org
>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>
>



More information about the MacRuby-devel mailing list