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 simple. Infact, I have no idea what is the correct way of doing something so simple - every sample around seems to deal with the string type, or something much more complicated. [NSMutable SetData] selector doesn't seem to exist either even though there are no warnings in the code.

If someone can point me in the right direction, I would be very grateful. :)

Edit: I am using [dragImage ...] to help me with my dragging operations.

Edit
Report