• 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
Converting NSPasteboard to NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting NSPasteboard to NSData


  • Subject: Converting NSPasteboard to NSData
  • From: Jeshua Lacock <email@hidden>
  • Date: Mon, 28 Apr 2003 02:08:53 -0700

Greetings,

Does anybody know of a convenient way to encode a NSPasteboard object into a NSData object?

I can write the individual pasteboard types data as data streams with 'dataForType', however, I would like to write the complete pasteboard to with [NSFileHandle writeData:], including the pasteboard types.

It seems like NSArchiver could do it, but I can't quite figure out how. My pasteboard object does not seem to respond to 'archivedDataWithObjectRoot:'.

I would greatly appreciate any suggestions, pointers and/or any help achieving my goal.


Thanks,

Jeshua Lacock __________________________
Programmer/Owner Phone: 760.935.4736
http://OpenOSX.com Fax: 760.935.4845
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: File Detection
  • Next by Date: Re: Hiding an NSTextField
  • Previous by thread: Re: File Detection
  • Next by thread: Program flow in NSApplication
  • Index(es):
    • Date
    • Thread