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: Rick Mann <email@hidden>
- Date: Wed, 14 Oct 2009 17:53:44 -0700
On Oct 14, 2009, at 17:43:28, mmalc Crawford wrote:
On Oct 14, 2009, at 5:21 PM, Rick Mann wrote:
NSMutableData* data = [NSMutableData data];
[data appendBytes: &self length: sizeof (self)];
Try using an NSValue:
+ (NSValue *)valueWithPointer:(const void *)aPointer
archive
then
unarchive
- (void *)pointerValue
Results in
"cannot encode (void *) value: <a0280300 02000000>"
Seems like I have to use an NSPasteboardItem.
_______________________________________________
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