• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Waling window list in visible window order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Waling window list in visible window order (From: Mark Alldritt <email@hidden>)

  • Prev by Date: CFMessagePort across multiple sessions
  • Next by Date: Mac OS 10.3 Help - hyperlinks do not work
  • Previous by thread: Waling window list in visible window order
  • Next by thread: CFMessagePort across multiple sessions
  • Index(es):
    • Date
    • Thread