• 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: Can I make custom pasteboard type for an object reference?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I make custom pasteboard type for an object reference?


  • Subject: Re: Can I make custom pasteboard type for an object reference?
  • From: mmalc Crawford <email@hidden>
  • Date: Wed, 14 Oct 2009 17:43:28 -0700

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

mmalc

_______________________________________________

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

  • Follow-Ups:
    • Re: Can I make custom pasteboard type for an object reference?
      • From: Rick Mann <email@hidden>
    • Re: Can I make custom pasteboard type for an object reference?
      • From: Rick Mann <email@hidden>
References: 
 >Can I make custom pasteboard type for an object reference? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Can I make custom pasteboard type for an object reference?
  • Next by Date: Re: Can I make custom pasteboard type for an object reference?
  • Previous by thread: Re: Can I make custom pasteboard type for an object reference?
  • Next by thread: Re: Can I make custom pasteboard type for an object reference?
  • Index(es):
    • Date
    • Thread