• 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: list open application windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list open application windows


  • Subject: Re: list open application windows
  • From: Steve Christensen <email@hidden>
  • Date: Mon, 12 May 2008 21:39:16 -0700

On May 12, 2008, at 8:15 PM, Ben Lowndes wrote:

I'm a cocoa newbie, so I may be missing something obvious here: I'd
like to get a list of open windows for all currently running
applications.

I've been able to get the list of running applications from
NSworkspace, but can't see a method of getting the open windows.

Using appleScript I seem to be able to reference them all but I'm
wondering if there's a cocoa method?

This is a popular topic that has been discussed a lot here on this (and other) lists, so it would be a good idea to do some searching. In general, you can only directly reference windows in your own process. There are methods of getting some access to windows in other processes via the accessibility APIs, and someone here mentioned recently about a new Leopard-only method but I can't remember what it is off the top of my head.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >list open application windows (From: "Ben Lowndes" <email@hidden>)

  • Prev by Date: Re: "Controller Cannot Be nil" on binding NSTextField
  • Next by Date: Re: how to create .qtz file from custom cocoa app
  • Previous by thread: Re: list open application windows
  • Next by thread: Re: list open application windows
  • Index(es):
    • Date
    • Thread