• 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
Re: scrollRangeToVisible from within mouseDown causing crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: scrollRangeToVisible from within mouseDown causing crash? (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: Basic XPath Question
  • Next by Date: Re: Need Mac Developers
  • Previous by thread: Re: scrollRangeToVisible from within mouseDown causing crash?
  • Next by thread: KVC - how to get properties into a common form?
  • Index(es):
    • Date
    • Thread