目录

PasteboardPublisher

PasteboardPublisher is a simple library that adds a Combine publisher to AppKit’s NSPasteboard class.

I created this because there is currently no way to “subscribe” to changes to an NSPasteboard, so it must be done by repeatedly polling the pasteboard’s changeCount. This library just abstracts that away, and adds Combine compatability. I used this library in my pasteboard filtering app, Plain Pasta, to great success.

I used many articles to build this library, but the one that finally connected the dots for me was Creating a custom Combine Publisher to extend UIKit by Antoine van der Lee.

关于
55.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号