Re: scrollRangeToVisible from within mouseDown causing crash?
Re: scrollRangeToVisible from within mouseDown causing crash?
- Subject: Re: scrollRangeToVisible from within mouseDown causing crash?
- From: Martin Wierschin <email@hidden>
- Date: Thu, 3 Apr 2008 15:27:20 -0700
Hi Ben,
1) I had a bug in my selection constraining code that in a few odd
places subtract a larger number from a smaller number when creating
a range, thus creating a range with a really really big length--
close to UINT_MAX.
...
Anyway, I would have never run up against this if my code wasn't
buggy, but I thought it might be helpful to someone down the line.
Thanks for the followup- did you file a bug with Apple on this? I
would expect bad ranges to be handled better. It would be nice if an
exception was thrown. At the very least it should silently clip them
to be valid instead of crashing.
~Martin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden