• 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: nobody knows, or just can't be done?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nobody knows, or just can't be done?


  • Subject: Re: nobody knows, or just can't be done?
  • From: Marco Scheurer <email@hidden>
  • Date: Wed, 17 Oct 2001 20:26:50 +0200

On Wednesday, October 17, 2001, at 07:34 pm, socko wrote:

i sent out a request yesterday for help with manipulating another
application's interface items (e.g. menu items) and no one has replied.
does this mean that no one knows how to achieve this, or that it is not
possible? perhaps some Cocoa guru could shed some light on this for me.

again, i'm trying to create an application that will allow me to
manipulate the menu items of other running applications without using
AppleScript and without controlling the mouse pointer to select the menu
items and i would like to know where to start.

Not sure what you're trying to do, but in order to do something like that, I would try:

(1) to force the target application to load some of my code;
(2) to communicate through distributed objects with that code.

(1) could be achieved using different means: with a NSInputManager; or by launching the target from gdb with a script in which you break early, load your bundle, and continue; or maybe by forcing the application to load a library (haven't tried that one for a while, man dyld for more info).

Finding menu items and exercising their actions should be straightforward. Using other controls, such as those in dialogs, maybe harder.

Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch


References: 
 >nobody knows, or just can't be done? (From: socko <email@hidden>)

  • Prev by Date: re: looking for advice with control implementation
  • Next by Date: Fatal crash in NSTabStop?
  • Previous by thread: Re: nobody knows, or just can't be done?
  • Next by thread: Fatal crash in NSTabStop?
  • Index(es):
    • Date
    • Thread