I am learning to program a simple Web Browser Mac App in Objective C. I have a simple textfield as an address bar and a Webview. As such, I wish to update the address the website in the textfield whenever the page changes when I click a link.
After googling, I realise I could use a method
didStartProvisionalLoadForFrame
in the WebFrameLoadDelegate Protocol. I then proceed to type
@interface AppDelegate : NSObject <NSApplicationDelegate,WebFrameLoadDelegate>
which resulted in an error. After further search I found out that is due to WebFrameLoadDelegate being an informal Protocol.
My question is then this: What is the syntax for using the method below specified by the informal Protocol?
- (void)webView:(WebView *)webView didFinishLoadForFrame:(WebFrame*)frame;
