Re: NEWBIE Telling a doc it's dirty
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.