Mac上下文菜单 [英] Mac contextual menu

查看:219
本文介绍了Mac上下文菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Mac应用程序,用于共享文件到不同的社交平台,如Flickr,Facebook等。我想在文件的上下文菜单中添加与MyApp共享设施。即,当i(控制+点击)文件系统中的任何文件时,我必须在上下文菜单中看到一个菜单项,如与MyApp共享,以便我可以运行我的应用程序共享文件。这是要求和我的问题是:是否可能做到,如果可能,如何实现?我的应用程序将与OS 10.6和更高版本兼容。我知道有一个工具,像打开>我的应用程序名称。但我想直接在上下文菜单中显示它。

I'm developing a Mac application for sharing files to different social platforms like Flickr, Facebook etc. I want to add the 'share with MyApp' facility within the contextual menu of the files. i.e, when i (control+click) any file in the file system, i must see a menu item like 'share with MyApp' in the contextual menu so that i can run my application for sharing the files.This is the requirement and my question is : is it possible to do and if possible, how this can be achieved? My application will be compatible with OS 10.6 and higher version. I know that there is a facility like Open with > my application name.But i want to show it directly in the contextual menu.

谢谢,
LS开发

Thanks, LS Developer

推荐答案

首先,Mac不是缩写。

Firstly, Mac isn't an acronym.

,你不能直接添加到Finder的上下文菜单,这远远超出苹果的HIG。您可以做的是添加一个启用共享设施的服务(可以从上下文菜单访问服务)。您可以在此处找到有关OS X服务的更多信息: http://www.cocoadev.com/index。 pl?MakeAppServices

Secondly, you can't add directly to Finder's contextual menu, that is far outside Apple's HIG. What you can do however, is add a Service that enables the share facility (Services are accessible from the context menu). You can find more information about OS X services here: http://www.cocoadev.com/index.pl?MakingAppServices

这篇关于Mac上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆