• 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
Raising exceptions from dataRepresentationOfType?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Raising exceptions from dataRepresentationOfType?


  • Subject: Raising exceptions from dataRepresentationOfType?
  • From: Neil Steiner <email@hidden>
  • Date: Tue, 04 Mar 2003 21:53:54 -0500

My dataRepresentationOfType relies on a bunch of C++ code, and if a C++
exception is thrown during processing, I clean things up and raise an
NSException. I assumed that NSDocument would abort the save operation,
and as far as I can tell it does do that, but it also seems just a wee
bit testy, and sometimes dumps the following into the output log:

Exception raised during posting of notification. Ignored.

(Did I mention that I'm new to Objective-C and Cocoa?) Anyhow, is there
a more gentle or acceptable way to abort the save operation when necessary?

Neil
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: - (void)deleteCharactersInRange:(NSRange)aRange, Where I went wrong
  • Next by Date: Re: Setting up an image's alpha using a 256 grayscale image
  • Previous by thread: - (void)deleteCharactersInRange:(NSRange)aRange, Where I went wrong
  • Next by thread: Printing to edge of paper
  • Index(es):
    • Date
    • Thread