advertisement

Article:
  BYOB: Build Your Own Browser, Part 3
Subject:   Display Page Title
Date:   2007-07-07 13:29:24
From:   ALEPETY
Hi everyone!
To display page title add this to implementation file (mydocument.m)
- (void)webView:(WebView *)sender didReceiveTitle:(NSString *)title forFrame:(WebFrame *)frame


{


// Report feedback only for the main frame.


if (frame == [sender mainFrame]){


[[sender window] setTitle:title];


}


}


This was taken from http://developer.apple.com/documentation/Cocoa/Conceptual/DisplayWebContent/