Re: Finding topmost window of a certain type
Re: Finding topmost window of a certain type
- Subject: Re: Finding topmost window of a certain type
- From: Ondra Cada <email@hidden>
- Date: Tue, 9 Apr 2002 17:31:15 +0200
On Tuesday, April 9, 2002, at 04:54 , Mike Pinkerton wrote:
For my find window, i want to find the topmost window under it that
responds to a certain selector (findInPage:). I tried looping over the
|windows| list in NSApplication, but that doesn't give me any kind of
zorder info, it just finds the first window created of that type. I can't
use |keyWindow| because the find window is the key window.
to find the main document window you can use
-[NSApplication mainWindow]
Also, you might want to check methods -[NSDocumentController
currentDocument], -[NSApplication targetForAction:], and -[NSWindow
firstResponder].
How do people normally do stuff like this?
They start by reading docs, perhaps? ;)
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.