Hi there,


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.


In this case:


- (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)proposedFrame


could become:


windowShouldZoom(window,  toFrame:proposedFrame)


there are other ways too, check out the page above.


Cheers,

J


On Fri, Apr 3, 2009 at 5:59 AM, Frisco Del Rosario <frisco@laszlomail.com> wrote:

What's the MacRuby style for this Obj-C ?

- (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)proposedFrame

>From http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/windowShouldZoom:toFrame:
How can a method be named Blah(arg) space blah(arg)?
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel