• 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: Distributed Objects crash sending an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed Objects crash sending an NSImage


  • Subject: Re: Distributed Objects crash sending an NSImage
  • From: Adam Leonard <email@hidden>
  • Date: Fri, 28 Oct 2005 16:35:56 -0700

You cannot send over an NSImage because it doesn't actually contain the picture data, it only contains information about what and where the image is.

You can used TIFFRepresentation, NSData, or anything else that holds the actually data.

There is an example just like this in Apple's PictureSharing example


On Oct 28, 2005, at 3:48 PM, Tito Ciuro wrote:

Hello,

This is puzzling: I have a window with an NSImageView containing an image. When I retrieve the image using [myImageView image] and then proceed to send it via DO, the app crashes every time.

However, if I obtain its data representation using [[myImageView image]TIFFRepresentation], send it via DO and reconstruct the image, then it works like a charm!

Why is that? Why can't I send an NSImage with DO? I've tried with other NS*-type objects and all work fine... :-/

Thanks,

-- Tito
_______________________________________________
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



_______________________________________________ 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: 
 >Distributed Objects crash sending an NSImage (From: Tito Ciuro <email@hidden>)

  • Prev by Date: converting to NSGraphicsContext coordinates?
  • Next by Date: Re: NSPanel vs. NSFontPanel and font color
  • Previous by thread: Distributed Objects crash sending an NSImage
  • Next by thread: converting to NSGraphicsContext coordinates?
  • Index(es):
    • Date
    • Thread