• 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
Re: Garbage Collection and NSNetService
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Garbage Collection and NSNetService (From: August Trometer <email@hidden>)
 >Re: Garbage Collection and NSNetService (From: Jon Hess <email@hidden>)

  • Prev by Date: Re: Global hotkey problem in Leopard
  • Next by Date: NSClipView leaves background artifacts when drawing
  • Previous by thread: Re: Garbage Collection and NSNetService
  • Next by thread: Crash Reporter for Cocoa Application
  • Index(es):
    • Date
    • Thread