• 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: Determine app's frontmost window when app is not in front?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine app's frontmost window when app is not in front?


  • Subject: Re: Determine app's frontmost window when app is not in front?
  • From: Brian Webster <email@hidden>
  • Date: Wed, 4 Sep 2002 16:09:32 -0500

Take a look at -[NSApplication orderedWindows]. It was written for the purpose of Applescript, but it should suffice at least for simple cases (i.e. when you're not showing sheets, color panel, etc.)

On Wednesday, September 4, 2002, at 03:28 PM, email@hidden wrote:

I have a need to determine which of my apps visible windows is
frontmost when the app is not "active". (in other words, the window
that would become the mainWindow if the user clicked the app icon in
the Dock). isMainWindow and isKeyWindow are globally referenced, so
they really are no help.

I realize that the X paradigm of layerless applications normally makes
such considerations meaningless, but this is the second time I have run
into a similar need -- the first was when I needed to determine the
frontmost document window so that it could be used as the target of a
System Service.

This time, however, I am looking for the frontmost visible window,
document or not.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.

  • Prev by Date: Re: NSNumberFormatter and literal spaces
  • Next by Date: textured windows
  • Previous by thread: Determine app's frontmost window when app is not in front?
  • Next by thread: Tokenizing a returned path?
  • Index(es):
    • Date
    • Thread