Re: Waling window list in visible window order
Re: Waling window list in visible window order
- Subject: Re: Waling window list in visible window order
- From: Jim Correia <email@hidden>
- Date: Fri, 26 Nov 2004 15:42:29 -0500
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden