On Thu, Apr 2, 2009 at 1:11 PM , John Shea wrote:
> if you look about a quarter of the way down this page ( the introductory tutorial)
I'd rtfm, but comprehended none of it, it seems.
> - (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)proposedFrame > windowShouldZoom(window, toFrame:proposedFrame)
Got it! Now moving on to this delegate method — in Cocoa Programming Quick Start, Daniel H. Steinberg gives:
- (void)webView:(WebView *)sender didReceiveTitle:(NSString *)title forFrame:(WebFrame *)frame {
[[sender window] setTitle:title];
}
Which I translated as:
def didReceiveTitle(title, forFrame:frame)
sender.window(setTitle:title)
end
That should be correct. But what might be the cause for the delegate method never to be triggered? (That is, the window title never changes.)
Thank y'all for your help, and for putting up with an old dog trying to learn new stuff.
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel