• 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
Access main window of other Applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Access main window of other Applications


  • Subject: Access main window of other Applications
  • From: Florian Pilz <email@hidden>
  • Date: Thu, 07 Apr 2011 17:01:26 +0200

Hi there!

I'm looking for an easy way to access the main window of another
Application, thus not my own. (The key window would be fine as well,
if that is easier.)
I already searched via Google to solve this task and I found the
following solutions:

* use AppleScript to perform this task and integrate it into the
Objective-C/Cocoa App with a Wrapper class, i.e. NSAppleScript
* use Quartz Window Services
* use the NSAccessibility Protocol

All three solution don't satisfy me, because a) I wanted to perform
the task in Objective-C (not AppleScript), b) the Quartz API looks
complicated and inappropriate (maybe I'm wrong - feel free to correct
me) and c) I couldn't find any examples on using the NSAccessibility
protocol to retrieve the main window, not mentioning the discomfort
that the user may activate access to accessibility features first.

As you may have guessed, I'm new to Cocoa & Objective-C. I'm here to
learn, so I am very open to corrections.

Thanks in advance for any hints, corrections, solutions or arguments,
why one of the solutions above is in the fact a good solution.

Best wishes
Florian
_______________________________________________

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: Access main window of other Applications
      • From: Bill Cheeseman <email@hidden>
    • Re: Access main window of other Applications
      • From: Peter Lübke <email@hidden>
    • Re: Access main window of other Applications
      • From: Eric Wing <email@hidden>
  • Prev by Date: NSWorkspaceWillPowerOffNotification not working with Qt Cocoa Mac Application
  • Next by Date: NSWorkspaceWillPowerOffNotification not working with Qt Cocoa Mac Application
  • Previous by thread: Re: NSWorkspaceWillPowerOffNotification not working with Qt Cocoa Mac Application
  • Next by thread: Re: Access main window of other Applications
  • Index(es):
    • Date
    • Thread