• 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: Andrei Tchijov <email@hidden>
  • Date: Wed, 5 Apr 2006 21:13:57 -0400

Ricky,
In my case it is "output only". I am using NSTextView to display text. It is not editable at all. I believe that "continuously updates ... " work only when you actually editing the text.
Andrei


On Apr 5, 2006, at 7:38 PM, Ricky Sharp wrote:


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:
    • Newbie Question about using selected file name with fopen
      • From: Phil Faber <email@hidden>
References: 
 >Is there some magic in NSTextView binding? (From: Andrei Tchijov <email@hidden>)
 >Re: Is there some magic in NSTextView binding? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: How to add items to a Pop-up menu
  • Next by Date: Re: NSCell with Embedded NSView
  • Previous by thread: Re: Is there some magic in NSTextView binding?
  • Next by thread: Newbie Question about using selected file name with fopen
  • Index(es):
    • Date
    • Thread