Re: observeValueForKeyPath:... called multiple times on exit
Re: observeValueForKeyPath:... called multiple times on exit
- Subject: Re: observeValueForKeyPath:... called multiple times on exit
- From: Keary Suska <email@hidden>
- Date: Tue, 08 Apr 2008 15:01:17 -0600
- Thread-topic: observeValueForKeyPath:... called multiple times on exit
on 4/8/08 1:23 AM, email@hidden purportedly said:
> I have an object observing an NSArrayController's "arrangedObjects"
> property. My observeValueForKeyPath:... is called as expected, except
> for shutdown. When I quit my application, it is called multiple times,
> but the array contents haven't changed. The NSArrayController is
> controlling an array of Core Data managed objects.
>
> Elsewhere in my code, I have another subscription just like it, only
> it's observing a different NSArrayController, but it does not exhibit
> this behavior.
>
> Is this behavior normal?
Why do you think it shouldn't be? Have you put a breakpoint in the observe
method and looked at what conditions are triggering the message, and
determined that they shouldn't be happening? That should answer your
question.
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