• 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: does windowDidClose or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: does windowDidClose or not?


  • Subject: Re: does windowDidClose or not?
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 17 Apr 2006 18:19:01 +0200

I do agree, just I think it is worth pointing out a catch there--one which is alas often overlooked by developers:

On Apr 17, 2006, at 5:23 PM, William Bumgarner wrote:

use a document like window such that the close button dirties as changes are made and the user uses "save" (cmd-s) to commit the changes

In general it is *very much wrong* to allow save for validated documents only. The thing is that the user *should be able* to save non-validated un-clean half-done work, say, since his power grid goes down and he has exactly ten seconds left before the UPS gives up, too :)


The proper way is to do validation and *warn* when saving something which cannot be validated, but save anyway, allowing the user to fix the errors in the next session.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ 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
  • Follow-Ups:
    • Re: does windowDidClose or not?
      • From: William Bumgarner <email@hidden>
References: 
 >Re: does windowDidClose or not? (From: Uli Kusterer <email@hidden>)
 >Re: does windowDidClose or not? (From: Ben Dougall <email@hidden>)
 >Re: does windowDidClose or not? (From: "Finlay Dobbie" <email@hidden>)
 >Re: does windowDidClose or not? (From: William Bumgarner <email@hidden>)

  • Prev by Date: Re: Auto-complete in an NSTextView
  • Next by Date: Re: Auto-complete in an NSTextView
  • Previous by thread: Re: does windowDidClose or not?
  • Next by thread: Re: does windowDidClose or not?
  • Index(es):
    • Date
    • Thread