Re: Can I make custom pasteboard type for an object reference?
Re: Can I make custom pasteboard type for an object reference?
- Subject: Re: Can I make custom pasteboard type for an object reference?
- From: Timothy Stafford Larkin <email@hidden>
- Date: Thu, 15 Oct 2009 06:34:02 -0400
- Acceptlanguage: en-US
- Thread-topic: Can I make custom pasteboard type for an object reference?
I messed around with this problem for some time, before I gave up
trying to be clever and cast the pointer as an unsigned long.
NSNumber *p = [NSNumber numberWithUnsignedLong:(unsigned long)object];
The number can be added to a pasteboard. Or if dragging more than one
object, NSNumbers can be added to an NSArray, and the array written to
the pasteboard.
Tim Larkin
Abstract Tools
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden