// we want is the root view, because we need to make the y origin relative
// to the very top of the window, not its contents, since we later flip
// the y coordinate for Cocoa.
- HIViewConvertRect (&rect, m_peer->GetControlRef(),
+ HIViewConvertRect (&rect, GetPeer()->GetControlRef(),
HIViewGetRoot(
(WindowRef) MacGetTopLevelWindowRef()
));