[MacRuby-devel] Obj-C translation
Laurent Sansonetti
lsansonetti at apple.com
Fri Apr 3 11:23:18 PDT 2009
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 being triggered, I would also suspect a
connection problem in IB.
The following tutorial illustrates how to set up connections from IB
and a MacRuby project, and might perhaps help you.
http://developer.apple.com/mac/articles/scriptingautomation/cocoaappswithmacruby.html
HTH,
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090403/3ac2efc4/attachment.html>
More information about the MacRuby-devel
mailing list