• 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: Simple beginner pasteboard issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple beginner pasteboard issues


  • Subject: Re: Simple beginner pasteboard issues
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 28 Mar 2006 08:41:44 -0500


Check out the NSCoding protocol documentation, make your object NSCoding compliant, and use NSArchiver / NSUnarchiver to encode the object as an NSData then decode it again on the other end.


--
I.S.


On Mar 28, 2006, at 2:58 AM, Matteo Manferdini wrote:

Hi everyone, I'm trying to use pasteboards but I'm not getting anywhere.
I have objects I want to copy into a pasteboard for drag&drop operations, but I can't figure out how to do it. Pasteboards only accept NSData objects or predefined types, so how do I convert my custom object into something I can put into the pasteboard? And how can I convert it back in paste operations?
Thanks.


---
Matteo Manferdini


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to 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
References: 
 >Simple beginner pasteboard issues (From: Matteo Manferdini <email@hidden>)

  • Prev by Date: Re: Pop up window ala msn messenger
  • Next by Date: Re: Student membership
  • Previous by thread: Simple beginner pasteboard issues
  • Next by thread: Re: NSView as dataCell in TableView WORKED
  • Index(es):
    • Date
    • Thread