Delegate methods defined in modules
#!/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!
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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (2)
-
Laurent Sansonetti
-
Zach Holt