Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Out of bounds exception from NSTextView



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.