• 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: Compiler error when trying to catch a NSRangeException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiler error when trying to catch a NSRangeException


  • Subject: Re: Compiler error when trying to catch a NSRangeException
  • From: Charles Steinman <email@hidden>
  • Date: Sun, 27 Jul 2008 14:14:18 -0700 (PDT)

--- On Sun, 7/27/08, Randy <email@hidden> wrote:

> @catch (NSRangeException *nSRE)

NSRangeException is declared as an NSString constant, not a class. What you want to do is catch an NSException and check if [[exception name] isEqualToString:NSRangeException].

Cheers,
Chuck



_______________________________________________

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: 
 >Compiler error when trying to catch a NSRangeException (From: Randy <email@hidden>)

  • Prev by Date: Re: Event-Driven XML Parsing and Entity References
  • Next by Date: Re: quit external application
  • Previous by thread: Compiler error when trying to catch a NSRangeException
  • Next by thread: Re: Any actor or coroutine implementations for Cocoa?
  • Index(es):
    • Date
    • Thread