Re: newbie:how to get the frontmost window but a key window
Re: newbie:how to get the frontmost window but a key window
- Subject: Re: newbie:how to get the frontmost window but a key window
- From: j o a r <email@hidden>
- Date: Thu, 10 Jan 2008 21:53:02 -0800
Hi,
What is the problem that you're really trying to solve here? Why do
you need to find a window behind the key window that's not the main
window? I suspect that we will be able to give you a better answer if
we can understand what you're really trying to do.
As an example, your real problem might not be that you need the
ability to find a non-main window, but rather that the window you're
trying to find *should* be main, but isn't. It's important to identify
the correct problem to solve before attempting to find a solution.
j o a r
On Jan 10, 2008, at 8:15 PM, norio wrote:
Hi,
I'd like to know how to get the most front window below a key window
(e.g.Find dialog).
I've tried the following things but failed.
1. call currentDocument of the sharedDocumentController and tried to
get the window from the document.
But the document returned by currentDocument was nil.
2. call mainWindow of the sharedApplication. But the return object
was nil.
Thanks in advance.
Norio Ota
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden