How to de-register value observers
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