On Sep 10, 2009, at 10:30 AM, Nick Zitzmann wrote:
I have a service that can apply to multiple categories due to the
pasteboard types it accepts. In Snow Leopard, for some reason, the
service always shows up under the Pictures category even though it
also accepts text. I want it to show up in the General category.
I'm aware of an apparently undocumented NSRequiredContext key called
NSServiceCategory that manually sets the service category in the
Keyboard preference pane, which is useful when the pane does not
correctly categorize the service, which I'm guessing it does based
on the name and pasteboard type. I know that you can use a UTI here
to set the category, but what's the UTI for the "general" category?
I tried searching for NSServiceCategory and found nothing, and
searching for UTIs gives me results for a different meaning of UTI...
You should try to pick a UTI that represents your Service accurately.
If the UTI you pick does not conform to any category, then it will
wind up in General. But if later Apple adds a new category, and your
Service's UTI conforms to the new category's UTI, your Service will
show up in the new category.
If your Service really can't be categorized, just writing "General" is
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