Re: NSServiceCategory
Re: NSServiceCategory
- Subject: Re: NSServiceCategory
- From: Peter Ammon <email@hidden>
- Date: Thu, 10 Sep 2009 12:08:45 -0700
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...
Nick Zitzmann
<http://www.chronosnet.com/>
Hi Nick,
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
fine.
-Peter
_______________________________________________
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