NSPasteboard and simple custom data
问题 I'm having a really difficult time trying to get NSPasteboard to work, so forgive me for my lack of understanding. All I want is a simple way to write and retrieve from the pasteboard a NSUInteger value that is only for my application. All I am doing is drag dropping an item within my application, so all I need in the pasteboard is the item's id. I have tried looking into NSPasteboardItemDataProvider and NSPasteboardItem, and NSData, but they all have convoluted way of doing something so