Re: Show / Hide Window
Re: Show / Hide Window
- Subject: Re: Show / Hide Window
- From: Ron Davis <email@hidden>
- Date: Fri, 18 Apr 2003 10:04:38 -0500
on 4/18/03 12:07 AM, David Blanton at email@hidden wrote:
>
When the user chooses Preferences I display a preference panel. How do I
>
hide the main window, how do I know when the preference panel is dismissed
>
(close or esc does it) and then how do I show the main window?
I'm assuming you have a reason to hide the main window when the pref window
is opened. Just keep a reference to the main window in the object that
responds to the messages that opens your pref window in response to the menu
command and call hide on the main window.
Your pref window's delegate will get its windowWillClose method called when
the user clicks on the close button.
--
Ron Davis
"The true work of art is but a shadow of the divine perfection."
-Michelangelo
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.