I have been doing some more research on this... And it seems as if the dock is an application. It lives in Hard Drive/System/Library/Core Services/Dock and all of it's bundle info seem to point to it being an application. But this still leaves the problem of how to restart it (or send a quit event for it to restart).
Does anyone have any ideas? On 2/22/09 10:14 AM, "Ken Thomases" <k...@codeweavers.com> wrote: > On Feb 21, 2009, at 10:21 PM, Pierce Freeman wrote: > >> Is there some panel in Activity Monitor that I'm missing that shows >> you the Bundle ID of >> all the processes? I am not quitting my own application (as you may >> have >> guessed) but I do need some way to find it for another application. > > Is there one specific application that you will be quitting? You can > look into its application bundle at its Info.plist file to get its > bundle ID. > > >> On another topic: Is there someway to have NSWorkspace show all the >> processes open? Right now it is showing me the applications, but the >> process that I'm targeting isn't really an application and doesn't >> have an >> interface. > > As I recall, you were planning to send a "quit" Apple Event to the > process to ask it to quit. Are you sure it will respond to such an > event? If it's a BSD-level tool or daemon or the like, it very likely > won't. If it's an LSUIElement application, then it probably will. > > In addition to the documentation that Jerry Krinock referred you to, > you might want to read this technote > <http://developer.apple.com/technotes/tn/tn2050.html >> , especially the caveats regarding Process Serial Number-based APIs. > > Cheers, > Ken > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com