discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with currentDocument and mainWIndow


From: Wolfgang Lux
Subject: Re: problem with currentDocument and mainWIndow
Date: Wed, 6 May 2009 09:12:06 +0200

Riccardo Mottola wrote:

I guess because it is not key-order-front. I think this is wrong, but I am not sure. Yet even if there is no wain window, it has sense to have a current document, doesn't it?

I think this depends on your application. E.g., for a text editor the only sensible notion of a current document (at least I can think of) is the one you are currently editing and obviously there is no such document when you are working in another application.

It seems to me however, but I have other problems there thus my debugging went poorly, that Mac is consistent as far as nor providing a current document, I wonder how I can solve my need though.

There are two options here: In a similar situation, I keep track of the most recently edited document with an attribute in the application delegate. But you might as well use NSApplication's - orderedWindows method in order to look for the frontmost window if the application does not own the main window.

Wolfgang





reply via email to

[Prev in Thread] Current Thread [Next in Thread]