• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Binding and Observers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Big memory/time consumption in NSTreeController KVO GC
  • Next by Date: Re: Tracking Multiple Touches For Appropriate Label
  • Previous by thread: Re: Binding and Observers
  • Next by thread: Re: Binding and Observers
  • Index(es):
    • Date
    • Thread