Click the button webView load the page.Can not find webView object.

Code download:
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
webView is a property of your window instance (that you declared in AppWindow.h), so you need to get a reference to that somehow. One way to do that is to put this line in your mouseUp method:
WebView *webView = [(AppWindow *)self.superview.window webView];
(you also need to import “AppWindow.h” into ButtonStyle.m)