Re: Distributed Objects crash sending an NSImage
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