Snow Leopard 服务上下文菜单教程
我对 OSX 编程相对较新(即真的很新),我发现 我自己需要创建一个与 Finder 相关的上下文菜单。 从我在这里和网上读到的内容来看,这是唯一可能的 通过使用 Snow Leopard 中的服务。我找到了苹果 开发人员指南位于
但对我来说还不够详细。我真的想要一个 “基本”服务包/教程/我可以一步一步遵循或修改的东西 学习借鉴。
对此的任何帮助将不胜感激:-)
I'm relatively new to OSX programming (i.e. really new) and I find
myself in need of creating a Contextual Menu that ties into Finder.
From what I've read here as well as online, this is only possible
through the use of Services in Snow Leopard. I found the Apple
Developer guide at
Apple Services Implementation Guide
But it's not sufficiently detailed for me. I really would like a
"basic" Services package/tutorial/something that I can just follow step by step or modify to
learn from.
Any help on this would be greatly appreciated :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您要查找的信息在这里:http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/SysServices/Articles/providing.html#//apple_ref/doc/uid/20000853- 98828。
剽窃:服务可以作为应用程序的一部分提供,例如邮件,也可以作为独立服务提供——没有用户界面,仅在“服务”菜单中使用。
要构建提供服务的应用程序,请使用扩展名 .app 并将其安装在“应用程序”文件夹(或子文件夹)中。
要构建独立服务,请使用扩展名 .service 并将其存储在库/服务中。
无论哪种情况,您都应该将其安装在四个文件系统域之一:系统、网络、本地和用户。 (有关详细信息,请参阅文件系统概述中的文件系统域。)
The information you're looking for is here: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/SysServices/Articles/providing.html#//apple_ref/doc/uid/20000853-98828.
To plagiarize: A service can be offered as part of an application, such as Mail, or as a standalone service—one without a user interface that is intended for use only in the Services menu.
To build an application that offers a service, use the extension .app and install it in the Applications folder (or a subfolder).
To build a standalone service, use the extension .service and store it in Library/Services.
In either case, you should install it in one of the four file-system domains—System, Network, Local, and User. (See File-System Domains in File System Overview for details.)