Re: Re: How do I get the NSApplication of other running applications?
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