• 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
Distributed objects and retain/release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distributed objects and retain/release


  • Subject: Distributed objects and retain/release
  • From: Sailor Quasar <email@hidden>
  • Date: Sun, 8 Jun 2003 06:10:05 -0400

I'm using distributed objects over NSSocketPorts (and NSConnection, of course), and I'm trying to add an NSProtocolChecker. An NSConnection is set up to the server process, and the root object publishes a method for returning a separate connection-specific object to the client, as well as receiving a proxy to a similar object in the client. The problem is that I seem to need to call -retain on the proxy, but since niether NSProxy nor my protocol implements -retain, I end up with NSInvalidArgumentException's when I try to use an NSProtocolChecker. If I don't try to -retain the proxy, I crash due to accessing invalid objects. What's the solution here?

-- Sailor Quasar, High Codemaster of the Web, scourge of systems
cvs server: Updating Quasar/brain/caffiene
A pepsi
R coke
Email: 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.

  • Prev by Date: Print a number on the file icon.
  • Next by Date: (no subject)
  • Previous by thread: Fwd: Print a number on the file icon.
  • Next by thread: Re: Distributed objects and retain/release
  • Index(es):
    • Date
    • Thread