Re: How do I get indirect binding to work?
Re: How do I get indirect binding to work?
- Subject: Re: How do I get indirect binding to work?
- From: Keary Suska <email@hidden>
- Date: Fri, 05 Oct 2007 16:00:12 -0600
- Thread-topic: How do I get indirect binding to work?
on 10/5/07 3:38 PM, email@hidden purportedly said:
> This is the error message I get in the log window
>
> "An instance 0x34a970 of class Book is
> being deallocated while key value observers are still registered with
> it. Break on _NSKVODeallocateLog to start debugging."
>
> Has the problem something to do with [title release]; since title is
> under kvo. The crash happens when I choose "Quit New Application". But
> I still don't understand why.
Probably not. The message says that the issue is with a "book" object. The
relevant code is probably in the document class, or any other class that may
be allocating/deallocating a book object. Objects are not normally
deallocated when an application quits, so this message is odd.
Usually the message means that you have called -addObserver: on an object
but didn't call -removeObserver: before deallocating the observed object.
This doesn't happen as often with IB set bindings, sine they tend to take
care of themselves, although it will happen in certain circumstances when
manually loading nibs. In this case, there is usually a circular reference
preventing either the proper automatic unbinding or objects getting
deallocated in the order that you want.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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