Jump to content
  • Advertisement
Sign in to follow this  
mike44

scrap clipboard header on Mac?

This topic is 619 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!