incompatible pointer type warning, but everything OK?
incompatible pointer type warning, but everything OK?
- Subject: incompatible pointer type warning, but everything OK?
- From: Ron Fleckner <email@hidden>
- Date: Tue, 16 May 2006 13:10:05 +1000
Hi list,
I'm adding a subview to my main window's contentView, and when I do,
Xcode warns that I'm 'passing argument 1 of 'addSubview:' from
incompatible pointer type'. The argument is a pointer to an instance
of a subclass of NSView, and when I run the app it works. The user
clicks a disclosure triangle at the bottom of the window and the
window resizes and the new view is added, but the warning still
remains in Xcode.
I note that in the docs it says that addSubview expects an instance
of NSView, but my view is a subclass. I thought it should work to
pass a subclass, and it does, so why the warning?
Thanks for any enlightenment.
Ron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden