Re: Cannot Remove Observer Error [The Quest Continues]
Re: Cannot Remove Observer Error [The Quest Continues]
- Subject: Re: Cannot Remove Observer Error [The Quest Continues]
- From: Thaddeus Cooper <email@hidden>
- Date: Thu, 17 Apr 2008 17:48:38 -0700
So I have done more digging to try and understand what is going on
with this problem. I added addObserver and removeObserver methods to
the array controller and the wine object to see what was being set and
removed. It turns out that the array controller is telling the wine
object to remove the observer for "favorites" but I can see that it
never gets set -- which makes me wonder -- why would the array
controller try and remove something it never set...
If anyone has any thoughts I'd be greatful.
Thanks again.
Thaddeus O. Cooper
(email@hidden)
On Apr 17, 2008, at 11:31 AM, mmalc crawford wrote:
On Apr 17, 2008, at 10:45 AM, Thaddeus Cooper wrote:
As far as I know these are correct. But I'm sure someone will tell
me if they aren't ;-)
Just for reassurance, they look OK to me.
I can't remember if you're targeting 10.5+? If so, you should try
to avoid writing your own accessor methods and use dynamically-
generated ones instead (<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdAccessorMethods.html#//apple_ref/doc/uid/TP40002154-SW9
>).
As for the actual problem, I'm afraid nothing definite comes
immediately to mind. Are you setting up any bindings
programmatically? Are you setting the content of the array
controller directly at any stage?
mmalc
_______________________________________________
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