• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distributed Objects and Retain


  • Subject: Distributed Objects and Retain
  • From: David McGavran <email@hidden>
  • Date: Wed, 1 Feb 2006 18:01:09 +0100

I have a server app that vends a single object. From that object you can iterate over several objects. Each time I return a new object as an ID I want to stor e it on the client side as a member variable of a client object. If I don't retain it I get crashes as the object goes away. If I retain it, I watch the ref count go up and everything works. However I am worried in that xcode tells me this:

warning: '-retain' not found in protocol(s)


That makes me nervous. What is the correct way to store a local copy of an object on the client side?


Also in the same vain. If I send a message to a protocol with some bogus data I get a hard crash. How can I setup exception handling on every message sent to the distributed object so I don't crash?

Thanks!

Dave
_______________________________________________
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


  • Follow-Ups:
    • Re: Distributed Objects and Retain
      • From: Ofri Wolfus <email@hidden>
  • Prev by Date: RE: Learning Cocoa, but no programing experience, possible?
  • Next by Date: NSAnimation crash
  • Previous by thread: Re: Spotlight importer question
  • Next by thread: Re: Distributed Objects and Retain
  • Index(es):
    • Date
    • Thread