Out of bounds exception from NSTextView
Out of bounds exception from NSTextView
- Subject: Out of bounds exception from NSTextView
- From: "Brant Sears" <email@hidden>
- Date: Wed, 31 Aug 2005 17:41:31 -0700
- Thread-topic: Cocoa-dev Digest, Vol 2, Issue 1318
I'm calling insertText: with an NSString on an NSTextView. I'm getting an exception when I do this with a long string (20496 in length). Is there a way to tell that a string is too big before you try to call insertText:? The appKit reference doesn't even say that it might raise an exception.
The exception says NSRunStorage beyond bounds (2000).
What is the right thing to do to avoid this?
Thanks.
Brant Sears
_______________________________________________
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