• 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: Traversing windows with Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Traversing windows with Cocoa


  • Subject: Re: Traversing windows with Cocoa
  • From: Eric Schlegel <email@hidden>
  • Date: Mon, 3 Mar 2008 14:31:14 -0800


On Mar 3, 2008, at 1:10 PM, aldo kurnia wrote:

So, I looked at Accessiblity API and NSApplication looks somewhat promising because it can give out its NSWindow children reference and there are functions to activate them. One missing piece of the puzzle though, is that I couldn't find any way to get a list of system-wide processes and create a NSApplication reference to them. Does anyone has any idea about this?

There isn't any way to create NSApplication instances for processes other than your own.


The Accessibility API (_not_ AppleScript) is clearly the right way to go here. With Accessibility you can get information about the windows in other processes, including their titles, and then compare those titles to your desired window title. AppleScript is not sufficient for this task because not all applications implement the AppleScript scripting interface that you'd need to get this info.

-eric
_______________________________________________

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


  • Follow-Ups:
    • Re: Traversing windows with Cocoa
      • From: Bill Cheeseman <email@hidden>
References: 
 >Traversing windows with Cocoa (From: aldo kurnia <email@hidden>)

  • Prev by Date: Re: NSArchiver and MySQL
  • Next by Date: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
  • Previous by thread: Re: Traversing windows with Cocoa
  • Next by thread: Re: Traversing windows with Cocoa
  • Index(es):
    • Date
    • Thread