I'm trying to get WebKit to display the page title of the currently opened document window, which includes a WebView. The document won't display after I run the app.
I'm using Document.m and windowNibName to achieve this, but I'm sure what I'm doing is wrong. I think it might be with both the NSStrings, which I can't have. Though if I don't have them I can't return the Document title... (WebKit/WebKit.h is imported)
- (NSString)windowNibName:(WebView *)sender didReceiveTitle:(NSString *)title forFrame:(WebFrame *)frame
{
// Report feedback only for the main frame.
if (frame == [sender mainFrame]){
[[sender window] setTitle:title];
}
return @"Document";
}