• 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
Launch Services uses Helper instead of Main App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Launch Services uses Helper instead of Main App


  • Subject: Launch Services uses Helper instead of Main App
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 29 Nov 2006 21:18:22 -0800
  • Thread-topic: Launch Services uses Helper instead of Main App

My app's package contains a "helper" app in its Resources folder.

The main app and the helper both have their own Info.plist files.  The main
app's Info.plist contains a list of CFBundleDocumentTypes with extensions
that it opens, including "bdogmigr".  The helper app is LSBackgoundOnly,
LSUIElement and does not have any CFBundleDocumentTypes in its Info.plist.

I've shipped it this way for 10 months and had no complaints, but today, on
my Mac, I found that, upon doubleclicking my "bdogmigr" documents, it only
works (opens in the main app) one time after I've rebuilt the Launch
Services database.  The second time, it seems that it tries to open it with
the helper (which doesn't work).  I learned this by reading the "You are
opening application [Helper] for the first time" dialog which sometimes
appears.

Of course, I have a couple dozen builds of this app on my Mac, but this is
nothing new.  Restarting didn't help.  Also, this build works fine on
another Mac, even though it has a couple dozen builds too.

Can anyone take a shot at explaining this weirdness?

Jerry Krinock

Here is how I rebuild the Launch Services database:

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchSe
rvices.framework/Support/lsregister -kill -r -domain local -domain system
-domain user


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Prev by Date: Re: OSAtomic.h
  • Next by Date: Building a calculator text field: problem with NSFormatter
  • Previous by thread: Re: OSAtomic.h
  • Next by thread: Building a calculator text field: problem with NSFormatter
  • Index(es):
    • Date
    • Thread