Re: Problem in updating NSTextView on Mac OS X 10.7
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