• 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: NSConnections: Can they retrieve objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSConnections: Can they retrieve objects?


  • Subject: Re: NSConnections: Can they retrieve objects?
  • From: Quentin Mathé <email@hidden>
  • Date: Thu, 9 Jan 2003 17:06:39 +0100

Le mercredi, 8 jan 2003, ` 05:15 Europe/Paris, Matt Handley a icrit :

I was wondering if a NSConnection can retrieve an object from a remote computer. I wrote two applications on the same computer and ran them, and the code worked perfectly, but with two computers, would the data in, say, an NSData object be copied over through the NSConnectionr?

It's possible with the keyword bycopy :

you call :
[proxyObject data];

you implement your method in your proxyClass like that :
- (bycopy NSData *)data {
return hereIsData;
}

Nb : The object you copy must implement the NSCoding protocol.

You can find more on this topic at the following url : file:///Developer/Documentation/Cocoa/ObjectiveC/ 4objc_runtime_overview/index.html

--
Quentin Mathi
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSConnections: Can they retrieve objects? (From: Matt Handley <email@hidden>)

  • Prev by Date: Re: Forcing NSUserDefaults being written to disk?
  • Next by Date: Crash with NSMutableArray and NSNumber
  • Previous by thread: NSConnections: Can they retrieve objects?
  • Next by thread: PG Suggestion Series: Carbon-Cocoa Distinction Dissolution
  • Index(es):
    • Date
    • Thread