Skip to content

TextEditor sample: toolbarItemsForDocument: unused parameter? #67

Description

@memmons

The AppController's toolbarItemsForDocument: parameter is not being used in the TextEditor sample. In addition the following comment appears in it:

// Cache document toolbar items. These must *only* target the given object (not the document) 
   so that we can reuse them.

Is the OUIDocument parameter legacy code that wouldn't typically be used or is the TextEditor samle a special case where it's not needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions