• 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: Subclass observers on dealloc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclass observers on dealloc


  • Subject: Re: Subclass observers on dealloc
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 1 Feb 2007 00:08:11 +0100

Am 31.01.2007 um 04:30 schrieb Ken Tozier:
I have some sub classes of a custom NSView class that perform various actions in response to changes in the view. Since the sub classes are basically watching other parts of themselves, I'm wondering whether it's necessary to call

[self removeObserver: self
		forKeyPath: inProperty];

Doesn't the KVO stuff retain whatever it observes? Or was that bindings? If it does, an object observing itself would cause a retain circle, which prevents your object from ever being released (i.e. it is leaked).


Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Subclass observers on dealloc (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: NSButton Text Color?
  • Next by Date: Is the "id" type an immovable pointer? Or a movable handle
  • Previous by thread: Re: Subclass observers on dealloc
  • Next by thread: Re: Subclass observers on dealloc
  • Index(es):
    • Date
    • Thread