Re: Programmatically Clear Dirty NSDocument
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