Skip navigation.
 
mlRe: Garbage Collection and NSNetService
FROM : August Trometer
DATE : Sun Nov 11 19:17:01 2007

Thanks Jon, moving the object out of the Nib did the trick.

-- August




On Nov 11, 2007, at 12:52 PM, Jon Hess wrote:

> Hey August -
>
> NIB loading leaves a retain of +1 on all top level NIB objects. 
> That's what is keeping your object alive without GC. With GC, that 
> retain is a no-op. In order to keep your object alive you'll need to 
> do something like reference it from another live object, reference 
> it from a global, or CFRetain/CFRelease it.
>
> Good Luck -
> Jon Hess

Related mailsAuthorDate
mlGarbage Collection and NSNetService August Trometer Nov 11, 17:37
mlRe: Garbage Collection and NSNetService mmalc crawford Nov 11, 18:44
mlRe: Garbage Collection and NSNetService Jon Hess Nov 11, 18:52
mlRe: Garbage Collection and NSNetService August Trometer Nov 11, 19:17