Re: Frontmost window of particular document type
Re: Frontmost window of particular document type
- Subject: Re: Frontmost window of particular document type
- From: Ondra Cada <email@hidden>
- Date: Wed, 29 May 2002 13:08:54 +0200
On Wednesday, May 29, 2002, at 04:31 , Eric Blenkush wrote:
I have 2 types of documents in my app and a few other windows here and
there. How do I find the document object associated with the frontmost
window(which may or may not be the key or main window)
Actually, unless you have OCSmart Hacks or similar patch, in Mac OS X --
quite wrongly, IMHO! -- the key window must be always the frontmost one
(save for dock or menu windows or pallettes, none of which has any
document associated).
of one particular document type?
Well
- normally you don't, framework does: you just send any action to the
First Responder; the document which is in the responder chain would catch
it automatically;
- if crucial, you can use -currentDocument.
I am not quite sure though it is what you really want?
---
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.