Re: Opening Documents at Unhide
Re: Opening Documents at Unhide
- Subject: Re: Opening Documents at Unhide
- From: Greg Titus <email@hidden>
- Date: Thu, 26 Sep 2002 09:30:24 -0700
On Thursday, September 26, 2002, at 08:35 AM, Gerriet M. Denkmann
wrote:
I have a document-based-application, have opened fourteen documents,
and have miniaturized all fourteen.
Then I use some other application.
Now I want to work again on one of my fourteen documents.
Yes, I could try to find the wanted document in the dock. But this is
not very convenient.
So I just click on the application again, intending to use its
Window-menu to open the document which I need.
But when I click my application, some document gets always opended.
Well, you could avoid your whole problem with no code changes by just
control-clicking, or click-and-holding on the dock icon, which will pop
up a menu with all of the open windows in that app for you to choose
from.
How can I stop my application doing this? Is there some NSApplication
delegate method like applicationShouldOpenSomeFileAtUnhide (similar to
applicationShouldOpenUntitledFile), which I can override and return NO
?
See the NSApplication delegate method
-applicationShouldHandleReopen:hasVisibleWindows: if you really must
change this.
If not, what can I do to stop this extremely annoying behaviour?
This behavior is part of Apple's human interface guidelines, so I would
recommend against changing it in your app, but it's up to you...
Hope this helps,
-Greg
_______________________________________________
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.