Mailing Lists: Apple Mailing Lists

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

reset NSServices values



Hi,

I managed to get NSServices to send the right types to my app under Leopard thanks to Even Gross's hint. Now I'm having problems getting other apps to recognize the new values. Even after restarting the computer and relaunching my app, Safari and TextEdit continue to try to use the old methods. It looks as though resetting the Launch Services database will do the trick, but I hesitate to ask users to enter such a scary command as this:

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

I also found a very nice AppleScript posted & that is an improvement, but is there a better way to reset just the NSServices values?

Thanks,
Denise
_______________________________________________

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:
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.