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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to