• 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: Problem in updating NSTextView on Mac OS X 10.7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem in updating NSTextView on Mac OS X 10.7


  • Subject: Re: Problem in updating NSTextView on Mac OS X 10.7
  • From: Michael Thon <email@hidden>
  • Date: Wed, 07 Sep 2011 09:47:31 +0200

On Sep 2, 2011, at 3:25 PM, Payal Mundhada wrote:

>
>
>
>
> Hi All,
>
> I have programatically added NSTextView Object.
>
> I want to remove old text from  it and insert the new text. This NSTextView object is not editable. I am setting value in it using function setString.
>
> I want to update textView continuously, but the text is not updated in continuos manner and if we click on text view, text get updated but throws exception
> (NSRangeException) NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds
>
> I am facing this problem on Mac OS X 10.7, while application is behaving as per expectation on Mac OS X 10.5 and Mac OS X 10.6
>
>
> Any clue will be very helpful
>
> Thanks,
> Payal

I don't know anything about your exception, but [myTextView textStorage] returns anNSTextStorage object which inherits from NSMutableAttributedString.  I use that object to modify the NSTextView instance's contents.
Mike


_______________________________________________

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: 
 >Fwd: Problem in updating NSTextView on Mac OS X 10.7 (From: Payal Mundhada <email@hidden>)

  • Prev by Date: Re: nonatomic vs atomic assign/retain
  • Next by Date: Re: NSURLConnection problem on Mac OS X 10.7
  • Previous by thread: Fwd: Problem in updating NSTextView on Mac OS X 10.7
  • Next by thread: Fwd: NSURLConnection problem on Mac OS X 10.7
  • Index(es):
    • Date
    • Thread