• 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
NSPersistentDocument not saving after exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPersistentDocument not saving after exception


  • Subject: NSPersistentDocument not saving after exception
  • From: Theo Vosse <email@hidden>
  • Date: Wed, 9 Apr 2008 10:00:12 +0200

Hi,

My CoreData app (under 10.4) refuses to save the document once an exception has been thrown. Its a C++ exception thrown from a menu command after displaying an alert and it is caught. It happens both on Intel and PPC, in Debug and in Release mode.

What happens after the exception, is that the save operation fails without any warning (not even a call to NSLog or [NSException raise]). If you choose quit after making changes, the save dialog appears. Choosing save then results in the app menu staying highlighted, which makes it look as though it is busy, while in reality it returns to the main event loop. Choosing the save command manually doesn't seem to do anything. When no exception has been thrown, saving works normally.

Is this a known bug? Is there a workaround? It's almost impossible not to throw the exception (its the error routine deep inside a recursive descent parser)...

Thanks,

	Theo
_______________________________________________

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


  • Prev by Date: Beginner TableView Questions
  • Next by Date: Re: NSTreeController / CoreData still broken in 10.5?
  • Previous by thread: Re: Beginner TableView Questions
  • Next by thread: How to get a notification which tells a folder name got changed
  • Index(es):
    • Date
    • Thread