• 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
NSMutableAttributedString binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableAttributedString binding


  • Subject: NSMutableAttributedString binding
  • From: Ivan C Myrvold <email@hidden>
  • Date: Thu, 10 Jan 2008 18:11:46 +0100

I have binded the a NSTextView to an NSAttributedString. This works fine when I set the binded variable, the NSTextView is showing the text fine.
But if I make a change in the variable, this is not reflected in the NSTextView.
I am doing this:


[[self attributedText] replaceCharactersInRange:elementRange withString:[te c]];


and the NSTextView which is binded to attributedText does never show the change.
If I do an NSLog of this variable immediately following the above line, I can see the change.


What should I do to get the NSTextView to show the change?

Ivan
_______________________________________________

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: NSMutableAttributedString binding
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: NSInteger problem
  • Next by Date: Re: NSInteger problem
  • Previous by thread: Re: NSInteger problem
  • Next by thread: Re: NSMutableAttributedString binding
  • Index(es):
    • Date
    • Thread