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

Re: Access main window of other Applications


  • Subject: Re: Access main window of other Applications
  • From: Eric Wing <email@hidden>
  • Date: Fri, 08 Apr 2011 01:09:16 -0700

On 4/7/11, Florian Pilz <email@hidden> wrote:
> 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),

ScriptingBridge will let you do AppleScript-things, but in
non-AppleScript languages. Apple officially supports ScriptingBridge
through Obj-C, PyObjC, and RubyCocoa, though any thing that binds to
Obj-C can access ScriptingBridge too (such as my LuaCocoa).


-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________

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: 
 >Access main window of other Applications (From: Florian Pilz <email@hidden>)

  • Prev by Date: NSWorkspaceWillPowerOffNotification not working with Qt Cocoa Mac Application
  • Next by Date: Re: Localized sorting of a Core Data entity
  • Previous by thread: Access main window of other Applications
  • Next by thread: Re: Access main window of other Applications
  • Index(es):
    • Date
    • Thread