O'Reilly logo

Learning Cocoa by Apple Computer Inc

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

Define a Document Type for To Do

You already learned about Document Types in Chapter 11, so setting up the To Do document type should be old hat:

  1. In Project Builder, select the default document type in the Document Types listing. Change its name to ToDoDocument.

  2. Leave the role set to Editor.

  3. Make the document extension tdo.

  4. In Section 14.1.2, you learned that application signatures can be associated with a document to create a “strongly bound document.” You can add the To Do application signature to the To Do document type now if you wish; simply type ToDo in the OS types list. If you don’t want to create a strongly bound application, leave this blank (delete the default entry "????").

  5. To associate an icon with this document type, follow the same procedure you used in the previous section to create an application icon, and then specify the name of the document icon file.

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