Re: Frontmost window of particular document type
Re: Frontmost window of particular document type
- Subject: Re: Frontmost window of particular document type
- From: Eric Blenkush <email@hidden>
- Date: Wed, 29 May 2002 14:11:24 -0700
On Wednesday, May 29, 2002, at 04:08 AM, Ondra Cada wrote:
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).
I have two types of documents, call them type A and B. Lets say I have
several of each type open and the key window is of type A. I want to be
able to find the frontmost document of type B. I hope ive made the
problem clear now.
Eric
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.
_______________________________________________
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.