• 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: Exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exception


  • Subject: Re: Exception
  • From: Bill Bumgarner <email@hidden>
  • Date: Fri, 18 Jul 2008 11:15:47 -0700

On Jul 18, 2008, at 11:04 AM, Alexander von Below wrote:
The diagnosis is right in front of your eyes:

-[NSCFString substringWithRange:]: Range or index out of bounds

You are calling "substringWithRange:" with a range that is out of bounds.


There are two ways to handle this

1) Check if your range is valid before you use it
2) Handle Exceptions yourself

This isn't in Michael's code, it is Xcode that is tossing the exception.

It is a known bug (rdar://problem/6077362) and a fix is in the works.

b.bum

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Exception
      • From: Michael <email@hidden>
References: 
 >Exception (From: Michael <email@hidden>)
 >Re: Exception (From: Alexander von Below <email@hidden>)

  • Prev by Date: Re: Exception
  • Next by Date: Re: Exception
  • Previous by thread: Re: Exception
  • Next by thread: Re: Exception
  • Index(es):
    • Date
    • Thread