• 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: Objective-C++ Exceptions (was: PICT control problems)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C++ Exceptions (was: PICT control problems)


  • Subject: Re: Objective-C++ Exceptions (was: PICT control problems)
  • From: Bill Bumgarner <email@hidden>
  • Date: Sun, 25 Jun 2006 11:49:14 -0700

On Jun 24, 2006, at 7:08 PM, David Dunham wrote:
On 24 Jun 2006, at 10:58, Bill Bumgarner wrote:
If your application encounters an NSException, then the state of the AppKit, Foundation, and CoreData are undefined. NSExceptions are thrown for non-recoverable runtime errors.

So far I've had fairly good luck catching NSException so I can report errors when a document can't be read (e.g. the mythic NSInvalidArchiveOperationException). Seems like a recoverable error to me...


But I'm not using C++ in this app, and I'm catching fairly close to the throw.

Sent from xcode-users to Cocoa-dev.

David is correct... it is recoverable in that the app isn't dead. However, the NSDocument that failed to read is now in an unrecoverable state....

b.bum

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


  • Prev by Date: Re: archiving a predicate
  • Next by Date: Re: Helper Tool on FireWire
  • Previous by thread: Re: archiving a predicate
  • Next by thread: Re: Objective-C++ Exceptions (was: PICT control problems)
  • Index(es):
    • Date
    • Thread