chengengshen
V2EX  ›  macOS

macOS quicklook 插件如何开发?

  •  
  •   chengengshen · Oct 13, 2022 via Android · 2214 views
    This topic created in 1312 days ago, the information mentioned may be changed or developed.

    大佬们,mac 新手求救。 自定义文件需要在 mac 上,选中时显示缩略图,按空格则调出预览。查看官方文档有点懵。网上的教程大部分是 qlgenerator. 公司之前做了一个说在新系统异常。目前不知道哪出问题。 1.OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize); 这种方式新版本好像经常出错。 2.新的方式。swift 大佬们有好的 demo 吗?

    3 replies    2022-10-13 23:39:48 +08:00
    gromit1337
        1
    gromit1337  
       Oct 13, 2022
    企业微信的 quicklook 经常崩,要在控制台 kill 才能重新用,14 寸 mbp ,系统是 12.6
    WillBC
        2
    WillBC  
       Oct 13, 2022
    这个人开发了不少 ql 插件,可以看看他的代码 https://github.com/sbarex
    chengengshen
        3
    chengengshen  
    OP
       Oct 13, 2022 via Android
    @gromit1337
    @WillBC 感谢大佬,找文档中。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2834 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 10:35 · PVG 18:35 · LAX 03:35 · JFK 06:35
    ♥ Do have faith in what you're doing.