• 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: Cocoa / OC exception handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa / OC exception handling


  • Subject: Re: Cocoa / OC exception handling
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 17 Oct 2008 22:18:12 -0400

On Fri, Oct 17, 2008 at 10:00 PM, Dale Miller <email@hidden> wrote:
> Does the word 'type' here mean 'the
> class of the exception object'?

Yes.  It means "type" as in the type system.  If the class of the
exception being thrown is equal to or is a subclass of the type of the
pointer provided in the @catch directive, then that @catch block will
be executed.  The first one to match wins.

> I do have some experience with exception handling, but Objective-C's has
> very few parallels with that of mainframe assembler.

This is a very different sort of exception handling.  Hardware
exception handling has better parallels with the signal system (`man 3
signal` for more info).  Exception handling in most languages is more
involved with the structure of your program.

--Kyle Sluder
_______________________________________________

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: 
 >Cocoa / OC exception handling (From: Dale Miller <email@hidden>)
 >Re: Cocoa / OC exception handling (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: Sharing a Bindings Controller between nibs
  • Next by Date: Cocoa / OC exception handlng - answered
  • Previous by thread: Re: Cocoa / OC exception handling
  • Next by thread: Cocoa / OC exception handlng - answered
  • Index(es):
    • Date
    • Thread