Re: Garbage Collection and NSNetService
Re: Garbage Collection and NSNetService
- Subject: Re: Garbage Collection and NSNetService
- From: August Trometer <email@hidden>
- Date: Sun, 11 Nov 2007 13:17:01 -0500
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
_______________________________________________
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