• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting true parent window of views in drawers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting true parent window of views in drawers
      • From: Greg Herlihy <email@hidden>
    • Re: Getting true parent window of views in drawers
      • From: glenn andreas <email@hidden>
  • Prev by Date: RE: montreal cocoa dev
  • Next by Date: Re: Undo and NSArrayController and CoreData
  • Previous by thread: Re: Core Data : awakeFromInsert
  • Next by thread: Re: Getting true parent window of views in drawers
  • Index(es):
    • Date
    • Thread