• 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: Re: How do I get the NSApplication of other running applications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: How do I get the NSApplication of other running applications?


  • Subject: Re: Re: How do I get the NSApplication of other running applications?
  • From: "Corey O'Connor" <email@hidden>
  • Date: Thu, 7 Sep 2006 15:49:08 -0700

On 9/7/06, Alan Smith <email@hidden> wrote:
So, I'll get the notification that an app has been launched and it'll
go in my dock. Then, if a user right-clicks on an app the app's "Dock
Menu" should pop up.
Hm. Not sure if you can. That may be a private API only Apple knows
the secrets of. I'm not sure though.

I don't want alternative ways to solve each problem individually
because I have other uses for getting the NSApplication of a running
app.

Unfortunately, what Shawn meant by "A little thing called a process barrier is your way, among other issues." is that, well, you can't. You won't be able to get an instance of any other applications NSApplication. Even if all applications were Cocoa and had NSApplication instances and you were able to figure out the address of the instance that address would be useless* to your application. Inter-application communication is what you want to look into and, sadly, it's not as simple as NSApplication. Not fancy OLE/COM here.

I think the accessibility APIs may help you. Not sure though. I can't
see a way to get the dock menu using these APIs but I've just started
using them this past week.

--
-Corey O'Connor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Re: Re: How do I get the NSApplication of other running applications?
      • From: "Tom Harrington" <email@hidden>
    • Re: Re: How do I get the NSApplication of other running applications?
      • From: "Alan Smith" <email@hidden>
References: 
 >How do I get the NSApplication of other running applications? (From: "Alan Smith" <email@hidden>)
 >Re: How do I get the NSApplication of other running applications? (From: "Shawn Erickson" <email@hidden>)
 >Re: How do I get the NSApplication of other running applications? (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Observing Core Data
  • Next by Date: Re: How do I get the NSApplication of other running
  • Previous by thread: Re: How do I get the NSApplication of other running applications?
  • Next by thread: Re: Re: How do I get the NSApplication of other running applications?
  • Index(es):
    • Date
    • Thread