Skip navigation.
 
mlgarbage collection and NSConnection
FROM : eblugamma
DATE : Mon Jun 30 19:33:55 2008

hey,
I have a project that uses Bonjour for some of its communication, 
theres a server and a client, and I was having tremendous difficulty 
getting it to work, pouring and pouring over my code, only to discover 
some weeks later that for some odd reason, NSConnections do not work 
when the project is set to support or require garbage collection.

As a test I set garbage collection to: Unsupported, and the app 
compiled, and the NSConnection returned the proxy object as expected. 
But the app obviously failed to do much else, because I had no retain, 
release, or autorelease method calls.

I am not a lazy person, but I am a novice programmer, and the retain, 
release, autorelease stuff in cocoa is horrible. I was very happy when 
garbage collection was added to Cocoa, and my projects became much 
easier to develop, and maintain. Now however, I find myself with a 
project riddled with memory problems that did Not exist just a few 
days ago, and as far as I can tell, I don't have any choice... My app 
either gives up Bonjour, or I have to retrofit the whole thing to 
manage its own memory with a system that is, lets face it, poorly 
envisioned.

can anybody shed any light on this? am I really stuck managing the 
memory myself? This is intolerable.

cheers,
-eblu

Related mailsAuthorDate
mlgarbage collection and NSConnection eblugamma Jun 30, 19:33
mlRe: garbage collection and NSConnection John Pannell Jun 30, 20:57
mlRe: garbage collection and NSConnection eblu Jun 30, 22:10
mlRe: garbage collection and NSConnection Jean-Daniel Dupas Jun 30, 22:19
mlRe: garbage collection and NSConnection Jean-Daniel Dupas Jun 30, 22:25
mlRe: garbage collection and NSConnection Hamish Allan Jun 30, 23:23
mlRe: garbage collection and NSConnection Joan Lluch (casa) Jul 3, 00:09
mlRe: garbage collection and NSConnection Michael Ash Jul 3, 03:33
mlRe: garbage collection and NSConnection Joan Lluch (casa) Jul 4, 11:25
mlRe: garbage collection and NSConnection Jean-Daniel Dupas Jul 4, 11:38
mlRe: garbage collection and NSConnection Joan Lluch (casa) Jul 4, 18:32
mlRe: garbage collection and NSConnection Chris Hanson Jul 4, 22:54
mlRe: garbage collection and NSConnection Chris Hanson Jul 4, 23:02
mlRe: garbage collection and NSConnection Joan Lluch (casa) Jul 6, 00:00
mlRe: garbage collection and NSConnection mmalc crawford Jul 6, 02:05
mlRe: garbage collection and NSConnection Bill Bumgarner Jul 6, 02:09
mlRe: garbage collection and NSConnection Joan Lluch (casa) Jul 6, 08:47
mlRe: garbage collection and NSConnection Hamish Allan Jul 7, 00:18
mlRe: garbage collection and NSConnection Joan Lluch (casa) Jul 7, 09:17
mlRe: garbage collection and NSConnection Sean McBride Jul 7, 19:33
mlRe: garbage collection and NSConnection Hamish Allan Jul 8, 00:25
mlRe: garbage collection and NSConnection Marcel Weiher Jul 10, 18:17
mlRe: garbage collection and NSConnection Michael Ash Jul 10, 18:50
mlRe: garbage collection and NSConnection Marcel Weiher Jul 11, 01:33
mlRe: garbage collection and NSConnection Michael Ash Jul 11, 05:29
mlRe: garbage collection and NSConnection Marcel Weiher Jul 11, 09:21
mlRe: garbage collection and NSConnection Michael Ash Jul 11, 17:59
mlRe: garbage collection and NSConnection Marcel Weiher Jul 11, 20:17
mlRe: garbage collection and NSConnection Michael Ash Jul 11, 21:53
mlRe: garbage collection and NSConnection Sean McBride Jul 12, 00:19
mlRe: garbage collection and NSConnection Marcel Weiher Jul 12, 08:25
mlRe: garbage collection and NSConnection Michael Ash Jul 12, 17:25
mlRe: garbage collection and NSConnection Marcel Weiher Jul 12, 19:24
mlRe: garbage collection and NSConnection Gary L. Wade Jul 12, 21:33
mlRe: garbage collection and NSConnection Michael Ash Jul 12, 22:42
mlRe: garbage collection and NSConnection Gary L. Wade Jul 12, 23:36
mlRe: garbage collection and NSConnection Marcel Weiher Jul 13, 18:29
mlRe: garbage collection and NSConnection Michael Ash Jul 13, 22:19