• 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: [DO-Question] NSString works, NSImage not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Bindings detail column shows dictionary description, not value
  • Next by Date: Re: adding an executable as a resource
  • Previous by thread: Re: NSTextField undo in a sheet?
  • Next by thread: Cocoa-heads Orange County meeting 12/13
  • Index(es):
    • Date
    • Thread