[Mono-osx] Quick Look support in MonoMac

Geoff Norton gnorton at novell.com
Fri Jan 21 11:14:37 EST 2011


On 2011-01-20, at 12:46 AM, Frank Krueger wrote:

> Hello,
> I am writing to inquire into the inclusion of QuickLook bundles into MonoMac apps.
> QuickLook bundles are little plugins loaded by the Quick Look daemon in OS X to generate thumbnails and previews of documents. The are little Mach-O executables that implement 4 functions. These functions are supposed to be written in a re-entrant fashion since they will be used over and over on possibly 1 thread. (This behavior can be prevented, but it would be best if we support it.)
> Thread safety: http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/Quicklook_Programming_Guide/Articles/QLImplementationOverview.html%23//apple_ref/doc/uid/TP40005020-CH6-SW1
> It would be a wonderful dream world if I could create an assembly that contains a class that implements those 4 functions and have that packaged up into a bundle and included in my MonoMac app.
> Any thoughts on how much work it would be to create such a packager?

So the actual converting a project to this type of bundle isn't horribly difficult.  We'll use a static library initializer to start up the VM, and then proxy the C methods to a defined API contract on some .exe or .dll which the user specifies.  I can whip this up without too much work, the question I have is around tooling.  Since QL projects can be installed system wide, or bundled into an existing application, this probably needs to be its own entire project type in MD with some special rules to handle the above (likely just a different flag to mmp).  I think it should be a .dll as well, since there is no real "entry point" or static void Main() equivalent in the API that I see.  Then we just need to figure out how to have a MonoMac app rely on this app and put it in the right place when we want to embed it.

Hutch? Thoughts?
Miguel? Thoughts?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110121/261aae7b/attachment.html 

More information about the Mono-osx mailing list