Re: [DO-Question] NSString works, NSImage not
Re: [DO-Question] NSString works, NSImage not
- Subject: Re: [DO-Question] NSString works, NSImage not
- From: Tito Ciuro <email@hidden>
- Date: Fri, 9 Dec 2005 19:45:50 -0500
Hello,
You can't send over an NSImage because it doesn't actually contain
the picture data.. Use NSImage's TIFFRepresentation to send its data
instead.
Regards,
-- Tito
On 09/12/2005, at 19:11, Christian Buggle wrote:
// this client code does work:
myText = [theProxy getStringFromServer];
// this does not:
myImage = [theProxy getImageFromServer];
// why?
// Christian
// (server code below, theProxy is the Proxy object from DO-tutorial-
code)
### Server code:
-(NSImage*) getImageFromServer{
return myServerImage;
}
-(NSString*) getStringFromServer {
return @"this works"
}
_______________________________________________
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