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: Graham Cox <email@hidden>
- Date: Thu, 07 Feb 2013 10:13:23 +1100
On 07/02/2013, at 5:21 AM, Steve Mills <email@hidden> wrote:
> So it's like updating that state during drawing is not allowing the window's isDocumentEdited state to change.
>
> Since we do have that bug that causes non-dirty docs to become dirty during their first draw, I'm not going to worry about this too much. But it still seems to me like a Cocoa bug where the window state isn't getting changed when it should.
No, it's your bug. You should never update state during drawing. Drawing should always be the (final) result of a state change, not the cause.
--Graham
_______________________________________________
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