On 07/02/2013, at 5:21 AM, Steve Mills <smi...@makemusic.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to