O'Reilly logo

Swift Programming: The Big Nerd Ranch Guide by John Gallagher, Matthew Mathias

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Saving and Loading Documents

VocalTextEdit is starting to come together! You can enter text and hear it spoken back to you. Unfortunately, there is a pretty major feature missing: The files cannot be saved. You might have seen a notification that your documents cannot be autosaved, as shown in Figure 26.21.

Figure 26.21 VocalTextEdit autosave failure

The VocalTextEdit screen titled “Untitled – Not Saved” is shown. Below the title, a popup box reads: The document could not be autosaved.

Even worse, if you try to save a document, you get a pretty nasty error message, as shown in Figure 26.22.

Figure 26.22 VocalTextEdit save failure

The VocalTextEdit screen titled “Untitled – Not Saved” is shown. Overlapping the screen, a dialog box reads: The document “Untitled” could not be saved as “Hello World.txt.” At the bottom right of the dialog box, OK button is shown.

This might be a little ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required