In documentation, updateChangeCount: "if the change count is 0, the document has no changes to save, and if the change count is greater than 0, the document has been edited and is unsaved"
isDocumentEdited "Returns YES if the receiver has changes that have not been saved, NO otherwise." I could write better code if I had a more direct definition. If I interpret "document has been edited and is unsaved" to mean the same as "has changes that have not been saved", then the converse follows by contradiction and thus the implementation of -isDocumentEdited must be simply this: - (BOOL)isDocumentEdited { return (_changeCount > 0) ; } Am I correct? Thanks! Jerry _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com