On ٢٩/٠٤/٢٠١٥, at ١١:٠٨, Charles Jenkins <cejw...@gmail.com> wrote: > I think it most likely I’m doing this in the wrong place. But what’s the > right place? Overriding NSDocument’s setFileModificationDate() would seem > like the best way, but the NSDocument Programming guide says messages are > sent to setFileURL:, setFileType: and setFileModificationDate: “if > appropriate,” so I’m not sure I can count on getting that message.
I don't think that's a good spot, as it isn't explicitly connected to file saving. I'd try updateChangeCount: instead, and check for NSChangeCleared. Also, keep in mind that "Save to..." and the likes also may get used on your document, saving to a different file but (IIRC) leaving the original document dirty. Maybe I'm misremembering what they do, but all those definitely need testing. -- Uli http://stacksmith <http://stacksmith/>.org _______________________________________________ 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