Skip navigation.
 
mlGetting true parent window of views in drawers
FROM : Mike Abdullah
DATE : Thu Mar 09 21:35:32 2006

In my app I have an custom NSControl in my app.  I want to register 
it to receive notifications from it's window.  However, if the 
control is inside a drawer, it considers its window to be an instance 
of NSDrawerWindow.

This class is private, so there is no documentation.  If I call 
parentWindow of it, I get NULL.  However, I can call _parentWindow to 
get the true parent window of the control.  Of course this is a 
private method, so seems a little dodgy to me.

Can anyone suggest either:

A. A better way of doing this?

OR

B. How to stop the compiler warning me about calling _parentWindow?

Mike A.

Related mailsAuthorDate
mlGetting true parent window of views in drawers Mike Abdullah Mar 9, 21:35
mlRe: Getting true parent window of views in drawers glenn andreas Mar 9, 23:54
mlRe: Getting true parent window of views in drawers Mike Abdullah Mar 10, 01:24
mlRe: Getting true parent window of views in drawers Andy Lee Mar 10, 01:44
mlRe: Getting true parent window of views in drawers Mike Blaguszewski Mar 10, 01:55
mlRe: Getting true parent window of views in drawers Greg Herlihy Mar 10, 05:25
mlRe: Getting true parent window of views in drawers John C. Randolph Mar 10, 07:55
mlRe: Getting true parent window of views in drawers Mike Abdullah Mar 10, 09:17
mlRe: Getting true parent window of views in drawers Mike Abdullah Mar 11, 02:03