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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com