• 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
Out of bounds exception from NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: For fun : Flipping a view widget-like !
  • Next by Date: Re: NSTableView Scrollbars are very quirky on 10.3!
  • Previous by thread: Re: Resizable field editor in NSTableView
  • Next by thread: Mounting SMB Servers
  • Index(es):
    • Date
    • Thread