Re: How do I get the NSApplication of other running applications?
Re: How do I get the NSApplication of other running applications?
- Subject: Re: How do I get the NSApplication of other running applications?
- From: Dustin Voss <email@hidden>
- Date: Sat, 9 Sep 2006 11:38:26 -0700
On 7 Sep 2006, at 3:27 PM, Alan Smith wrote:
Okay. Um... Put bluntly, I'm trying to "reinvent" the Dock. Many have
done this before but I'm just barely using Apple's Dock as a template.
You can't replace the Dock. You can write a Dock supplement, though.
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.
Also, if I can get the NSApplication of apps I'll use their main
windows to display a window as the desktop "image."
I don't want alternative ways to solve each problem individually
because I have other uses for getting the NSApplication of a running
app.
You can't get another application's NSApplication. You'll have to
find individual ways to solve each problem. Another poster mentioned
the Accessibility API. Those are the best hooks into another app that
you'll be able to find, but even so, it won't cover everything you need.
You'll have to identify specific things about the Dock that you don't
like, and come up with alternative solutions that are possible. You
can't just make a wish-list. Your app can assume that the Dock is
still there, and that the user will be using it when he needs to, so
your app will have to play nice with the Dock.
Take a look at some of the other Dock supplement applications. The
things none of them do? Those are things your app won't be able to
do, either.
If that's a frustrating limitation, well... at least that builds
character. :)
_______________________________________________
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