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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to