• 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: Bill Cheeseman <email@hidden>
  • Date: Thu, 03 Oct 2002 10:30:16 -0400

on 02-10-03 2:06 AM, Jim Graham at email@hidden 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?

Implement undo and redo per the documents, and all this will be taken care
of for you.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont
_______________________________________________
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: [semi-newbie] Message sent to NSWindowController after complete window load
  • Next by Date: Re: Insert text at end of Textview
  • Previous by thread: Re: NEWBIE Telling a doc it's dirty
  • Next by thread: modal dialogs
  • Index(es):
    • Date
    • Thread