I have created a mac application using the WebView. But issue is that webView is reloading when
[webView mainFrameUrl] == newURL
why this problem is happening?? how to solve it.
Besides the fact that the answer of theAmateurProgrammer is the correct one I want to give you another suggestion if it didn't solve your problem (since you didn't accept it).
Don't call mainFrameUrl frequently. Call it once and store it in another variable in the delegate method - (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame