简体   繁体   English

如何为QuickLook插件开发/创建GUI?

[英]How to develop/create a GUI for a QuickLook plugin?

I saw lots of QuickLook plugins (like BetterZip Quick Look Generator ) coming together with their nice and tidy interfaces...I tried to design the GUI of my own one using HTML and JQuery, but I don't think that it's a good solution (plus, on top of that, Xcode 5.1 doesn't allow you anymore to include or open files from other directories with the <src> attribute). 我看到很多QuickLook插件(比如BetterZip Quick Look Generator )和它们漂亮而整洁的界面......我尝试使用HTML和JQuery设计我自己的GUI,但我不认为这是一个很好的解决方案(另外,最重要的是,Xcode 5.1不再允许您使用<src>属性包含或打开其他目录中的文件)。

I'll never thank enough Jelle Vandebeeck for opening my mind with his beautiful and helpful post , but unfortunately there's nothing on the internet regarding this topic (I think that there might be something on The Big Nerd Ranch Guide, but it won't be out before October). 我永远不会感谢Jelle Vandebeeck用他美丽而有用的帖子开启我的思想,但遗憾的是互联网上没有任何关于这个话题的内容(我认为“大书呆子牧场指南”中可能有一些东西,但它不会是在十月之前)。

So, I was wondering if anybody of you: 所以,我想知道你是否有人:

OPTION A - Knows the title of a guide that can explain how to develop/create a GUI for my QuickLook plugin in a "didactic" way (like a text book, step-by-step); 选项A - 知道指南的标题,该指南可以解释如何以“教学”的方式为我的QuickLook插件开发/创建GUI(如教科书,一步一步);

OPTION B - Could write down in the answer a couple of code lines to insert a button and a text field with the usual "Hello World!". 选项B - 可以在答案中写下几行代码,用通常的“Hello World!”插入一个按钮和一个文本字段。

I have a sub-question related to the main one: is it possible to keep the semi-transparent white/grey background colour that a QuickLook window (like the one that appears when you select -for example- an audio file) usually has? 我有一个与主要问题相关的子问题:是否可以保持QuickLook窗口(例如,当您选择 - 例如音频文件时出现的那个)通常具有的半透明白色/灰色背景颜色?

Thank you so much in advance! 非常感谢你提前!

In terms of a guide, there's the QuickLook Programming Guide over in the documentation. 就指南而言,文档中有QuickLook编程指南 It goes over the architecture of QuickLook and walks you through the various steps of building a QuickLook plugin, including one that returns rich HTML content . 它介绍了QuickLook的体系结构,并引导您完成构建QuickLook插件的各个步骤,包括返回丰富HTML内容的插件。

Related to this are a couple of pieces of documentation on how to integrate QuickLook into your own app, but it sounds like you're more interested in the plugin aspect. 与此相关的是关于如何将QuickLook集成到您自己的应用程序中的几个文档,但听起来您对插件方面更感兴趣。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM