NSDocument's isDocumentEdited
NSDocument's isDocumentEdited
- Subject: NSDocument's isDocumentEdited
- From: "John Love" <email@hidden>
- Date: Sun, 20 Jul 2008 07:31:39 -0400
Within MyDocument's isDocumentEdited I have code to determine whether
MyDocument is edited and return the BOOLean flag accordingly.
I then discovered that the only way to set the window's "dirty" flag was to
*explicitly* call [window setDocumentEdited:editedFlag] within other methods
by duplicating the same code I have in MyDocument's isDocumentEdited method,
followed by setDocumentEdited on the window.
My "off the wall" guess *was* that Cocoa's main event loop called
isDocumentEdited and then set the window to "dirty" if needed. This guess
is wrong, or otherwise I would not have had to set the window to "dirty"
elsewhere.
Anyone have a clue here?
Cheers, John Love
_______________________________________________
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