Re: Binding and Observers
Re: Binding and Observers
- Subject: Re: Binding and Observers
- From: Steve Steinitz <email@hidden>
- Date: Wed, 9 Dec 2009 09:18:58 +1100
Hi Gerriet,
On 8/12/09, email@hidden wrote:
MyDocument.nib has an IKImageView and an NSSlider with it's value
bound to myIkView.rotationAngle. But when I closed the window I got
an exception complaining about some observers not beeing removed.
Is it the 'Cannot remove observer...' exception? If so, its
nasty and difficult to work around. Worse, once the exception
occurs the app is left in an unstable state, which may be why
you eventually get the EXC_BAD_ACCESS. I currently just put up
a message with a Relaunch button after catching the exception.
Its embarrassing but after over two years of struggling,
stammering and making excuses for 'Cannot remove observer...',
that's all I've got.
One glimmer of hope I'm pursuing as of yesterday is adding
custom methods to change bindings like myIkView.rotationAngle to
myIkViewRotationAngle along with the appropriate
keyPathsForValuesAffecting... methods. For what its worth.
Previously, I added code to Core Data relationship setters to
remove objects from any existing relationship before setting a
new one. I'm not sure if that accomplished anything but one
gets to the point where one will try anything.
I've heard rumblings that the problem got worse with 10.6 rather
than better. I'm starting some testing on that now before I
migrate clients.
If you have a simple test case, filing a bug report won't hurt.
But if history is any indication it may not help much either. bugreport.apple.com
Good luck,
Steve
_______________________________________________
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