Launch Services uses Helper instead of Main App
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