Documentation

ETItemTemplate

ETItemTemplate : ETUIObject

A template to instantiate the right UI and model for a URL.

AuthorsQuentin Mathe
Declared inETItemTemplate.h

Overview

A template that embeds both an item template and an object class template, and can build new items initialized with a represented object for a given URL.

ETItemTemplate allows to support various strategy to open or create documents or content units in collaboration with a client object e.g. a ETDocumentController instance.

Subclassing is possible to implement new strategies, but in many cases a new template with a particular UI and model combination should give you enough flexibility.

The client object invokes -newItemWithURL:options: to get a new instance. -newItemWithURL:options: in turn uses ETDocumentCreation to delegate the model initialization.


No public API available