Re: Name to PSN
Re: Name to PSN
- Subject: Re: Name to PSN
- From: Pierce Freeman <email@hidden>
- Date: Sat, 21 Feb 2009 20:21:24 -0800
- Thread-topic: Name to PSN
Just got a chance to look into your replies... So here are my
questions/comments.
> A loop, sure. The same way you enumerate any array. Fast enumeration
> if you're targeting Leopard, or using an index or NSEnumerator.
Okay, sounds good.
> A bundle ID is guaranteed to be unique and stable. With a name, there
> may be other applications out there that are named the same thing.
> Also, the user is free to rename your application, although I don't
> know off-hand if the name provided by NSWorkspace is the on-disk name
> or the CFBundleName.
>
That makes sense, as application names are subject to change. 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.
> The bundle ID is one of the values in the dictionary elements of the
> array returned from -launchedApplications.
I didn't get a chance to play around with NSWorkspace before I emailed you
back, so I didn't quite know if it was.
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.
Thanks
_______________________________________________
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