NSException from [NSTextView setSelectedRange] ?
NSException from [NSTextView setSelectedRange] ?
- Subject: NSException from [NSTextView setSelectedRange] ?
- From: "Theodore H. Smith" <email@hidden>
- Date: Mon, 19 Jun 2006 12:20:32 +0100
I sometimes get an NSException when calling [NSTextView
setSelectedRange].
My guess is that I'm passing an invalid range.
Can I get NSTextView to correct the range automatically if I pass a
range that extends beyond the bounds of the text? I'd rather have it
auto-correct ranges, than throw NSExceptions. An exception seems a
bit harsh for such a simple mistake :(
--
http://elfdata.com/plugin/
_______________________________________________
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