开发者

Pasteboardmanager reference

开发者 https://www.devze.com 2023-03-31 04:46 出处:网络
HI i have an old code which uses a scrapref and selects scrap using GetScrapbyname(kscrapclipboardscrap,kscrapgetnamedscrap,&scrapref);

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 deprecate开发者_运维百科d, 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 ..


Cocoa and NSPasteboard (plus NSPasteboardItem on 10.6+) would be the modern equivalents of the Pasteboard Manager (cf. official documentation and CocoaDev for examples).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号