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:46:05 -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
"Instances of class NSConcreteValue not valid for NSPasteboard -
writeObjects:. The class NSConcreteValue does not implement the
NSPasteboardWriting protocol."
_______________________________________________
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