Sign in to follow this  
mike44

scrap clipboard header on Mac?

Recommended Posts

That code appears to be using the old Carbon "Scrap Manager" API. That entire API has been deprecated since 10.5 or so and isn't in modern SDKs; Carbon in general is a dead-end technology you shouldn't build new code around.

These days you want to use the NSPasteboard APIs, probably the Objective-C flavors thereof.

Share this post


Link to post
Share on other sites

The "clipboard" is a thing provided by your OS, so there's no standard C++ mechanism for doing so.

Your best bet is to find a cross-platform library that handles it for you; failing that, you have to write code against the specific OS APIs for every platform you want to support. This includes NSPasteboard in Cocoa if you want to support macOS.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this