Getting true parent window of views in drawers
Getting true parent window of views in drawers
- Subject: Getting true parent window of views in drawers
- From: Mike Abdullah <email@hidden>
- Date: Thu, 9 Mar 2006 20:35:32 +0000
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.
_______________________________________________
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