• 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: Programmatically Clear Dirty NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically Clear Dirty NSDocument


  • Subject: Re: Programmatically Clear Dirty NSDocument
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 07 Nov 2016 13:33:46 -0800
  • Feedback-id: 167118m:167118agrif8a:167118sc_3H2U2it:SMTPCORP

On Nov 7, 2016, at 10:46 , Richard Charles <email@hidden> wrote:
>
> This is exactly the same as before but it now works!

Regarding that particular mystery, NSChangeUndone decrements the change count. If it happened to be 1 when you tried this, the document would stop being dirty. Presumably, in your first test, the change count was greater than 1. As Jens said, the third test was invalid.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Programmatically Clear Dirty NSDocument
      • From: Richard Charles <email@hidden>
References: 
 >Programmatically Clear Dirty NSDocument (From: Richard Charles <email@hidden>)

  • Prev by Date: Re: Programmatically Clear Dirty NSDocument
  • Next by Date: Re: Programmatically Clear Dirty NSDocument
  • Previous by thread: Re: Programmatically Clear Dirty NSDocument
  • Next by thread: Re: Programmatically Clear Dirty NSDocument
  • Index(es):
    • Date
    • Thread