Re: Is there some magic in NSTextView binding?
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