• 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
Customizing save failure sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Customizing save failure sheet


  • Subject: Customizing save failure sheet
  • From: Brian Webster <email@hidden>
  • Date: Fri, 2 May 2003 11:37:54 -0500

I have an NSDocument application in which sometimes the data for the document is not valid, and I return nil from dataRepresentationOfType:. When this happens, NSDocument puts a sheet up on the window saying "The document could not be saved". However, I would like to be able to notify the user of the reason why the data is not valid and why the document cannot be saved. There doesn't appear to be any hook in NSDocument where I can put this message in the alert sheet or display my own sheet instead. Am I missing something, is there a workaround, or do I need to submit a feature request?

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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: Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port
  • Next by Date: Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port
  • Previous by thread: Unaddable Window
  • Next by thread: mutating method sent to immutable object
  • Index(es):
    • Date
    • Thread