• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Q] Correct way to identify an application, Launch Services, & Spaces
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] Correct way to identify an application, Launch Services, & Spaces


  • Subject: [Q] Correct way to identify an application, Launch Services, & Spaces
  • From: Eric Gorr <email@hidden>
  • Date: Thu, 7 May 2009 13:40:11 -0400

I have two versions of my application (appname 2008 & appname 2009). They both have the same identifier:

com.mycompany.appname

Is this ok so far?

So, if I reset the launch services database by doing:

lsregister -kill -r -domain local -domain system -domain user

and launch & quit appname 2008 and then launch appname 2009, I can dump the launch services database by doing:

lsregister -dump

When I look at the output, I see that appname 2008 is listed first and then appname 2009 comes later.

Since appname 2009 is still running, I can go to the Spaces preferences and add the application to the Application Assignments list. However, the name that shows up in the list is appname 2008 when it should be appname 2009

If I go through this process again, but launch appname 2009 first, the correct name will show up in the Application Assignments list.

Now, I believe I understand what is going on.

Since appname 2008 appears first in the Launch Services database and has the name identifier as appname 2009, Spaces finds appname 2008 first and uses the name from that application.


So, is it the "right thing" for two versions of the application to have the same identifier? Based on my understanding, this is what I want to do. I would not want to make the identifiers different by doing something like:


com.mycompany.appname.2008
com.mycompany.appname.2009

Or, do I?


Is there something else that I am missing that would make this work correctly?


Thank you.




_______________________________________________

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


  • Follow-Ups:
    • Re: [Q] Correct way to identify an application, Launch Services, & Spaces
      • From: Eric Schlegel <email@hidden>
  • Prev by Date: Re: NSXMLParser frees itself on error?
  • Next by Date: Re: Core Data Migration and the Inexperienced Younger Self
  • Previous by thread: Re: Tri-state Check box
  • Next by thread: Re: [Q] Correct way to identify an application, Launch Services, & Spaces
  • Index(es):
    • Date
    • Thread