HIViewRef is typedef'd to ControlRef, which is an opaque type.
HIObjectRef is its own opaque type.
Internally, are these interchangeable? Can I freely cast from one to
the other?
It seems that in the simple example of:
HIObjectRef myView;
HIObjectCreate(kMyObjID, null, &myView)
HIViewSetFrame(myView, &theFrame);
One runs into problems, requiring a cast.
Are there ever situations where one might have an HIObjectRef that's
not an HIViewRef?
Sorry for the pedantic questions; it speaks to programming Carbon
from D.