• 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
Retain Count of NSConnection object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Retain Count of NSConnection object


  • Subject: Retain Count of NSConnection object
  • From: Alexander Reichstadt <email@hidden>
  • Date: Mon, 04 Jan 2010 16:34:15 +0100

Hi and happy new year,

I have a server and a client app using NSConnection.

All seems to work fine. The client is doing something like [(NSDistantObject *)aServer doThis] while the server object has a method

- (oneway void)doThis
{
	NSLog(@"do something");
}

After calling this method, the retain count I geton the client side when I call [[aServer connectionForProxy] retainCount] has increased by 3. Why I cannot understand at all. It doesn't do anything. Even if I empty the entire method doThis it increases and makes my client run out of memory eventually.

Is the server actually influencing the retainCount of its client's connectionForProxy, or is the retainCount something that every party has to look after on its own (which I thought would be the case)?

I can hardly expect for this to be a Cocoa-bug but imagine I am misunderstanding something. Can anyone help and please tell me where I am erring here?

Thanks a lot
Alex

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Retain Count of NSConnection object
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: NSTreeController/OutlineView w/CoreData & Bindings & multiple selection?
  • Next by Date: Re: Retain Count of NSConnection object
  • Previous by thread: Re: Animating an NSView in from Below.
  • Next by thread: Re: Retain Count of NSConnection object
  • Index(es):
    • Date
    • Thread