Brad Wilson:
This is untested, but I'd suggest trying: def webView(sender, didReceiveTitle:title, forFrame:frame) sender.window.setTitle(title) end
Does that sound right to anybody else? Eloy Duran: Yep that's correct. Though Brad's suggestion did not result in the delegate method being triggered, and neither did the change setTitle:title, my enthusiasm is unflagging.
Haha I am out of ideas sorry Frisco. Good luck with it! On 03/04/2009, at 10:25 PM, 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
Does that sound right to anybody else? Eloy Duran: Yep that's correct. Though Brad's suggestion did not result in the delegate method being triggered, and neither did the change setTitle:title, my enthusiasm is unflagging.
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
I guess the another thing to check is that you have actually set your class (with the code below) to be the delegate in IB? On Apr 3, 2009, at 14:56 , Brad Wilson wrote:
Haha I am out of ideas sorry Frisco. Good luck with it!
On 03/04/2009, at 10:25 PM, 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
Does that sound right to anybody else? Eloy Duran: Yep that's correct. Though Brad's suggestion did not result in the delegate method being triggered, and neither did the change setTitle:title, my enthusiasm is unflagging.
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
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/cocoaappswithmac... HTH, Laurent
participants (4)
-
Brad Wilson
-
Frisco Del Rosario
-
John Shea
-
Laurent Sansonetti