Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.