• 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: NEWBIE Telling a doc it's dirty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NEWBIE Telling a doc it's dirty


  • Subject: Re: NEWBIE Telling a doc it's dirty
  • From: Jeremy Dronfield <email@hidden>
  • Date: Thu, 3 Oct 2002 14:14:49 +0100

On Thursday, October 3, 2002, at 07:06 am, Jim Graham wrote:

I have a standard document based app with a sub classed NSWindowController
handling all the needs of the window. I assume I need to let the window's
NSDocument sub class know when an edit has taken place so that it use
updateChangeCount:NSChangeDone to mark it as dirty and show the save sheet
on closing the window or quit. How do I do this?

I'd strongly advise against doing it at all. If your app truly is a "standard" doc-based one, you should implement NSDocument's default undo/redo features, which handles dirty-detection and change-counting automatically. For detailed guidance on how to do this, consult the Vermont Recipes tutorial at http://www.stepwise.com/Articles/VermontRecipes
-Jeremy

========================================
email@hidden // email@hidden
The Alchemy Pages:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
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.

References: 
 >NEWBIE Telling a doc it's dirty (From: Jim Graham <email@hidden>)

  • Prev by Date: Re: NSTableView and check boxes (for the hundredth time)
  • Next by Date: Re: Insert text at end of Textview
  • Previous by thread: NEWBIE Telling a doc it's dirty
  • Next by thread: Re: NEWBIE Telling a doc it's dirty
  • Index(es):
    • Date
    • Thread