• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Copying a reference of an object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Copying a reference of an object (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Stacking run loops
  • Next by Date: Also Wrapping an Interactive Unix Executable
  • Previous by thread: Copying a reference of an object
  • Next by thread: Also Wrapping an Interactive Unix Executable
  • Index(es):
    • Date
    • Thread