Re: Name to PSN
Re: Name to PSN
- Subject: Re: Name to PSN
- From: Pierce Freeman <email@hidden>
- Date: Fri, 27 Feb 2009 22:41:30 -0800
- Thread-topic: Name to PSN
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" <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden