开发者

How do i enable the service menu programmatically with out the user log out then enable it in the keyboard preferences?

开发者 https://www.devze.com 2023-02-28 07:18 出处:网络
As the title tells,plea开发者_如何转开发se help...You need to include the NSRequiredContext key in each of your services\' dictionaries.

As the title tells,plea开发者_如何转开发se help...


You need to include the NSRequiredContext key in each of your services' dictionaries.

The documentation doesn't mention this, but it is required since Mac OS X 10.6; as you've seen, your service will be disabled by default if you don't have it.

You should also call the NSUpdateDynamicServices function on launch, to refresh the user's Services menu without them having to log out and back in.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号