• 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: Poking NSTextView Binding to Update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Poking NSTextView Binding to Update


  • Subject: Re: Poking NSTextView Binding to Update
  • From: Seth Willits <email@hidden>
  • Date: Wed, 16 Apr 2008 16:31:48 -0700

On Apr 16, 2008, at 4:26 PM, Seth Willits wrote:

I have a text view bound to a key path through an array controller's selectedObject, and it doesn't update the value immediately when changing the text, it only updates the model if the text view loses first responder. I need the model sync'd before I do a certain operation, so I need to binding to update the value in the model. I can change first responder manually to trigger the update, but is there a proper way to poke the binding to update?

Bah. I totally forgot the NSController superclass existed. I only went down as far as NSObjectController. Forgive my quite newbish mistake. :(


-commitEditing:

--
Seth Willits




_______________________________________________

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


References: 
 >Poking NSTextView Binding to Update (From: Seth Willits <email@hidden>)

  • Prev by Date: Poking NSTextView Binding to Update
  • Next by Date: Re: Drawing a 1 pixel-perfect wide bordered NSBezierPath
  • Previous by thread: Poking NSTextView Binding to Update
  • Next by thread: Core Animation/Layers and Borderless Windows
  • Index(es):
    • Date
    • Thread