Class

PHProjectTypeDescription

An extensible enumerator for PHProjectType that's presented to users in the project picker.

Declaration

@interface PHProjectTypeDescription : NSObject

Overview

This object represents one project type choice presented in the project picker when a user is creating a project through project extensions. The PHProjectTypeDescriptionDataSource object returns this descriptor from typeDescriptionDataSourceForCategory:invalidator:.

Topics

Creating a Project Type Description

- initWithProjectType:title:description:image:

A convenience initializer without subtype descriptions.

- initWithProjectType:title:description:image:subtypeDescriptions:

A designated initializer for project type descriptions with the full subtype hierarchy specified up front and a standard string for description text.

- initWithProjectType:title:attributedDescription:image:subtypeDescriptions:

A designated initializer for project type descriptions with the full subtype hierarchy specified up front and an attributed string for description text.

- initWithProjectType:title:description:image:canProvideSubtypes:

A designated initializer for project type descriptions with lazily fetched subtypes and a standard description string.

- initWithProjectType:title:attributedDescription:image:canProvideSubtypes:

A designated initializer for project type descriptions with lazily fetched subtypes and an attributed description string.

Describing a Project Type

projectType

An identifier for the project type.

localizedTitle

The localized title of the project type as shown to the user.

localizedDescription

The localized description of the project type as shown to the user.

localizedAttributedDescription

The localized attributed description of the project type as shown to the user.

image

An optional image associated with the project type in the picker.

subtypeDescriptions

An array of type descriptions used for subtype descriptions.

canProvideSubtypes

A Boolean variable indicating whether subtypes can be fetched from the data source.

Relationships

Inherits From

Conforms To

See Also

Determining Project Type

projectType

The project type that the user selected from the project extension options.

PHProjectType

The type descriptor of a project extension.

creationSource

The source from which the project was created.

sections

An array of project sections, each containing one or more section content objects.

PHProjectTypeDescriptionDataSource

A protocol that you use to provide the project with type description data.

PHProjectTypeDescriptionInvalidator

A protocol that you use to tell the project when and how to invalidate type and footer text.

PHProjectCreationSource

Defines the source of a project extension.