objective c - Get notified when NSDocument is saved -
how can notified when nsdocument
saved, first time , subsequent times?
i first thought overriding writetourl:oftype:error:
it, appears method called temporary autosaves before document saved first time, , maybe on copy/duplicate operations.
on other hand, setfileurl:
appears called first time document saved not on subsequent times.
is there kind of save notification? or have work around various border cases of above methods?
nsdocument
has writesafelytourl::::, in add-on target location url gets nssaveoperationtype passed in. allow filter out autosave operations.
don't forget phone call super implementation when overriding writesafelytourl
.
objective-c cocoa nsdocument autosave
No comments:
Post a Comment