objective c - Is it possible write some code that forces xcode to save all or specific files? -
i'm trying make plugin writes .h file key command (⌥ + c) while i'm coding in .m file, e.g. i'm writing method want exposed, press key command @ end of line, , automatically writes in .h file without me having copy , paste over.
if i've made change in .h file , go .m file , use plugin directly after, error popup saying xcode has changes not on disk yet, , asks version want use, 1 on disk or 1 in xcode.
if i'm coding in .m file , adding methods , properties .h file plugin works fine (because haven't made changes .h file manually seems), it's when i've made changes myself .h file , go .m file , use plugin directly after error.
if i'm changing in .h file , press ⌘+s , go on .m file , use plugin works intended because force save whatever in .h file now. pressing ⌘+s command .m doesn't case, seems save current file you're working on, .h file or .m file.
so question is, possible make lines of code forces xcode save files (or .h file if that's possible, have the, have filename , path), i'm sure xcode , data on hard disk matches before plugin makes changes on hard disk?
Comments
Post a Comment