Skip navigation.
 
mlRe: Waling window list in visible window order
FROM : Jim Correia
DATE : Fri Nov 26 21:42:29 2004

On Nov 26, 2004, at 3:07 PM, Mark Alldritt wrote:

> I'm trying to walk the window list in the order windows are stacked on
> the
> screen.  NSApplication's windows method appears to returns a list of
> NSWindow*'s in creation-order.  NSDocumentController's documents method
> returns its lost of documents in creation-order.  The data returned by
> NSWindowList() does not appear to be usable.
>
> How do I get windows in visible order?  I need this in order to save
> (and
> later restore) open documents in my preferences.


The "Scripting" methods

- [NSApplication orderedWindows]

- [NSApplication orderedDocuments]

will do what you need.

Jim

Related mailsAuthorDate
mlWaling window list in visible window order Mark Alldritt Nov 26, 21:07
mlRe: Waling window list in visible window order Jim Correia Nov 26, 21:42