粘贴板管理器参考
您好,我有一个旧代码,它使用 scrapref 并使用 GetScrapbyname(kscrapclipboardscrap,kscrapgetnamedscrap,&scrapref); 选择废料;
比使用 getscrapflavourcount 获取风味计数,然后使用 getscrapinfoflavourlist 获取列表
由于上述 API 已弃用,我尝试使用粘贴板管理器替换它们,
但要替换, getscrapflavourcount 替换是 PasteboardCopyItemFlavors ,它使用 itemid,这不是这样的在旧代码中???在这里做什么..
HI i have an old code which uses a scrapref and selects scrap using GetScrapbyname(kscrapclipboardscrap,kscrapgetnamedscrap,&scrapref);
Than it takes the flavour count using getscrapflavourcount and then the list using getscrapinfoflavourlist
As the above API's are deprecated, i am trying to replace them using pasteboard manager
but to replace , getscrapflavourcount the replacement is PasteboardCopyItemFlavors which uses an itemid, which is not theer as such in the old code ??? what to do here ..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Cocoa 和
NSPasteboard
(加上 10.6+ 上的NSPasteboardItem
)将是 Pasteboard Manager 的现代等效项(参见 官方文档 和 CocoaDev 为例)。Cocoa and
NSPasteboard
(plusNSPasteboardItem
on 10.6+) would be the modern equivalents of the Pasteboard Manager (cf. official documentation and CocoaDev for examples).