Re: Copying a reference of an object
Re: Copying a reference of an object
- Subject: Re: Copying a reference of an object
- From: João Pavão <email@hidden>
- Date: Thu, 16 Dec 2004 14:08:08 +0000
Hi,
Try putting the object returned by
[NSValue valueWithNonretainedObject:theObject] into the clipboard instead. NSValue adopts the NSCoding protocol and simply contains a pointer to your real object.
João Pavão
On Dec 16, 2004, at 13:38, Lorenzo wrote:
Hi,
I would like to copy to the pasterboard a reference (id) of an object, so
later I can paste the same object into another object without recreating it.
It's so simple without using the pasterboard, but since I use the
pasterboard, and it requires NSData, and I don't create an encoder for my
object, I don't know how to pass the reference (id) of the object to the
pasterboard. Using the int address of the object doesn't work.
So, what should I copy to the pasterboard?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
João Pavão
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden