• 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: Is there some magic in NSTextView binding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there some magic in NSTextView binding?


  • Subject: Re: Is there some magic in NSTextView binding?
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 5 Apr 2006 18:38:26 -0500


On Apr 5, 2006, at 6:26 PM, Andrei Tchijov wrote:

Hi,
I think I need "professional help". I thought I understand how to make bindings work, but I spent more then 2 hours fighting with NSTextView and it still does not work.


This is what I am trying to do:
I have NSTextView in my GUI. I used "attributedString" binding. Appropriate "getter" gets invoked from inside binding code every time I expecting it to do so. And NSAttributedString object it returns does reflect changes I expect . Despite all this the text view stays empty!!!


Any kind of help/advice/hint/remark (anything at all) will be highly appreciated,

I simulated this problem in IB with two NSTextView objects both binding 'attributedString' to the same NSUserDefaults key path. When typing into the first text view, the second was not being updated.


However, when ending editing on either of the text views (e.g. by clicking in the other view to change focus), the text was correctly resynced.

You may need to check the "continuously updates value" checkbox under the 'atributedString' binding options. When doing so, any change I did to one text view was immediately reflected in the other.


___________________________________________________________ Ricky A. Sharp mailto:email@hidden Instant Interactive(tm) http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Is there some magic in NSTextView binding?
      • From: Andrei Tchijov <email@hidden>
References: 
 >Is there some magic in NSTextView binding? (From: Andrei Tchijov <email@hidden>)

  • Prev by Date: LSUIElement 1 still in Dock?!?
  • Next by Date: Re: LSUIElement 1 still in Dock?!?
  • Previous by thread: Is there some magic in NSTextView binding?
  • Next by thread: Re: Is there some magic in NSTextView binding?
  • Index(es):
    • Date
    • Thread