Search code examples
cocoadeprecatedmacos-carbonosx-leopardpasteboard

Pasteboardmanager reference


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 ..


Solution

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