Re: Close box not showing as dirty when the doc says it's dirty
Re: Close box not showing as dirty when the doc says it's dirty
- Subject: Re: Close box not showing as dirty when the doc says it's dirty
- From: Steve Mills <email@hidden>
- Date: Tue, 05 Feb 2013 19:25:55 -0600
On Feb 5, 2013, at 19:09:54, Lee Ann Rucker <email@hidden> wrote:
> There's probably a KVO observer on isDocumentEdited; if nothing triggers setDocumentEdited then it doesn't know to check it.
>
> updateChangeCount: says
>
> If you are implementing undo and redo in an application, you should increment the change count every time you create an undo group and decrement the change count when an undo or redo operation is performed.
> Note that if you are using the NSDocument default undo/redo features, setting the document’s edited status by updating the change count happens automatically. You only need to invoke this method when you are not using these features.
Ah, thanks! I'll give it a shot tomorrow.
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
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