• 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
two way bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

two way bindings?


  • Subject: two way bindings?
  • From: Daniel Oberhoff <email@hidden>
  • Date: Thu, 10 Jan 2008 23:53:57 +0100

Hi,

Help! I can't properly get bindings from a custom view to work...

I have a custom audio sample view with a selection and a cursor. I bind these to keys in the selected object of an array controller. A table view is also connected to this array controller displaying all the entries. Now when I add entries to the table they get commited to the array controller and also the audio view updates when I change the values, but when I change the selection or the cursor in the view with the mouse, this does not get commited to the currently selected row in the table as it should. In turn if I use an NSSlider instead of my view communication works both ways, as expected. Now the relevant keys of the sample notify changes manually with willChange and didChange. Also mltiple changes are nested properly and I also properly overload automaticallyNotifiesObserversForKey (as documented anyway). Are there any further pitfalls I need to be aware of?

Best

Daniel
_______________________________________________

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


  • Follow-Ups:
    • Re: two way bindings?
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: NSMenuItem / NSMenu Problems
  • Next by Date: Re: two way bindings?
  • Previous by thread: Re: NSView viewWillDraw crash
  • Next by thread: Re: two way bindings?
  • Index(es):
    • Date
    • Thread