• 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
How to de-register value observers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to de-register value observers


  • Subject: How to de-register value observers
  • From: Tron Thomas <email@hidden>
  • Date: Wed, 29 Aug 2007 07:54:03 -0700

After struggling for many days, I was finally able to create a custom view that could support binding to a custom property.

I am using this view in a window NIB and the window controller for that NIB is the object providing the value the view and other standard controls in the window bind to. The window controller is the delegate for the window and it attempts to free itself when the window closes.

I find that when I close the window, I get the following message in the debugger:

An instance 0x30fda0 of class <My Window Controller Class> is being deallocated while key value observers are still registered with it. Break on _NSKVODeallocateLog to start debugging.

I'm assuming this message indicates a problem with the implementation for my window controller class, and I would like to eliminate that problem. What is needed to prevent this message from occurring?

_______________________________________________

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


  • Follow-Ups:
    • Re: How to de-register value observers
      • From: Chris Hanson <email@hidden>
    • Re: How to de-register value observers
      • From: "Shawn Erickson" <email@hidden>
    • Re: How to de-register value observers
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Adding to an applications menu.
  • Next by Date: Re: core data app questions - help!
  • Previous by thread: Re: List of keyboard layouts
  • Next by thread: Re: How to de-register value observers
  • Index(es):
    • Date
    • Thread