]).
- Michael James
>Subject: Re: Cannot Remove Observer Error [The Quest Continues]
>From: Thaddeus Cooper <[EMAIL PROTECTED]>
>Date: Thu, 17 Apr 2008 17:48:38 -0700
>Delivered-to: [EMAIL PROTECTED]
>Delivered-to: [EMAIL PROTECTED]
>So I have done more digging to try and und
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
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 meth
Mark --
Thanks for the input.
The code for the accessor methods are shown below:
- (NSManagedObject *)wineType
{
id tmpObject;
DebugMessage(@"entering");
[self willAccessValueForKey: @"wineType"];
tmpObject = [self primitiveValueForKey: @"wineType"];
[self didAccessValu
How are KVO notifications for the Wine class' wineType property being
done? KVO is complaining that not enough of them are being sent out.
The rule for KVO-compliance in this case is that something must do
[wine willChangeValueForKey:@"wineType"] before the value returned by
[wine valueForK
Starting earlier today, I started getting the following error in my
software.
2008-04-14 17:59:41.535 WineCellar[4928:10b] Cannot remove an observer
for the key path "wineType.name" from
, most likely because the value for the key "wineType"
has changed without an appropriate KVO notific