Re: getting accessor method info in a different class.
Re: getting accessor method info in a different class.
- Subject: Re: getting accessor method info in a different class.
- From: Greg Guerin <email@hidden>
- Date: Fri, 18 Sep 2009 14:53:47 -0700
jon wrote:
In one class, I have set webView up like this... which works fine,
but i want to have access to this pointer from another class...
i am not getting something correct here, it gives me warning:
"WebView may not respond to webView"
i'll just include the relevant code.
what am i not understanding about accessor methods?
what is the proper way to have access to the pointer of the webView
but in a different class..
It has nothing to do with accessor methods, except in the most
general sense. You haven't imported the header WebView.h in the .m
implementation where you're invoking the -webView method.
All you've done is @class WebView, which does nothing more than tell
the compiler that the name belongs to a class. The compiler doesn't
know any methods defined by that class until you import the actual
WebView.h header.
-- GG
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden