[MacRuby-devel] Obj-C translation

John Shea johnmacshea at gmail.com
Thu Apr 2 13:11:02 PDT 2009


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 at 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 at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090403/5b7bb6a3/attachment.html>


More information about the MacRuby-devel mailing list