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.
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 mails | Author | Date |
|---|---|---|
| Mike Abdullah | Mar 9, 21:35 | |
| glenn andreas | Mar 9, 23:54 | |
| Mike Abdullah | Mar 10, 01:24 | |
| Andy Lee | Mar 10, 01:44 | |
| Mike Blaguszewski | Mar 10, 01:55 | |
| Greg Herlihy | Mar 10, 05:25 | |
| John C. Randolph | Mar 10, 07:55 | |
| Mike Abdullah | Mar 10, 09:17 | |
| Mike Abdullah | Mar 11, 02:03 |






Cocoa mail archive

