Add clarifying comments
This commit is contained in:
parent
6bdaaee963
commit
2be29e4b87
|
@ -338,6 +338,8 @@ static OSErr ProjectWrite(ProjectHandle project, FSSpec *spec,
|
||||||
OSErr err;
|
OSErr err;
|
||||||
short refNum;
|
short refNum;
|
||||||
|
|
||||||
|
// See IM: Files, p. 1-25, Listing 1-10 "Updating a File Safely".
|
||||||
|
|
||||||
err = MakeTempFile(spec->vRefNum, &temp);
|
err = MakeTempFile(spec->vRefNum, &temp);
|
||||||
if (err != noErr) {
|
if (err != noErr) {
|
||||||
return err;
|
return err;
|
||||||
|
@ -448,6 +450,7 @@ static void ProjectSave(WindowRef window, ProjectHandle project,
|
||||||
|
|
||||||
if (cmd == kSaveAs || (*project)->fileSpec.vRefNum == 0) {
|
if (cmd == kSaveAs || (*project)->fileSpec.vRefNum == 0) {
|
||||||
GetWTitle(window, name);
|
GetWTitle(window, name);
|
||||||
|
// FIXME: Move string to resource.
|
||||||
StandardPutFile("\pSave project as:", name, &reply);
|
StandardPutFile("\pSave project as:", name, &reply);
|
||||||
if (!reply.sfGood) {
|
if (!reply.sfGood) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue