objective c - NSWindow child window close on parent click -


i need implement custom popover (cannot use nspopover). working fine, need implement popover closes when user clicks somewhere in parent window.

what's best way implement this, resp. how implemented without subclassing parent window?

make popover key window when showing it, , use nswindowdidresignkeynotification (or delegate method) close when resigns status (which happens when user makes other window active). closing whenever parent window closed idea (nswindowwillclosenotification).


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -