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

Subclass observers on dealloc


  • Subject: Subclass observers on dealloc
  • From: Ken Tozier <email@hidden>
  • Date: Tue, 30 Jan 2007 22:30:09 -0500

Hi

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];

in the dealloc method. In this special case, will dealloc automatically free up the observers or are observers stored somewhere else like the application, or Objective C runtime?

TIA

Ken
_______________________________________________

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


  • Follow-Ups:
    • Re: Subclass observers on dealloc
      • From: "Julien Jalon" <email@hidden>
    • Re: Subclass observers on dealloc
      • From: Uli Kusterer <email@hidden>
    • Re: Subclass observers on dealloc
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: How to get interval (in seconds) between mouse clicks
  • Next by Date: Re: Subclass observers on dealloc
  • Previous by thread: Re: How to get interval (in seconds) between mouse clicks
  • Next by thread: Re: Subclass observers on dealloc
  • Index(es):
    • Date
    • Thread