Inherits from NSObject
Declared in PFObjectFactory.h

Overview

The PFObjectFactory can instantiate appropriate PFAsset instances and PFView instances

Tasks

  • + assetFromUrl:observer:

    Instantiate an PFAsset object and load its contents from a local file URL or remote HTTP based url, which will result in the download of the file). Instantiation follows the ‘create’ rule.

  • + viewWithFrame:

    Instantiate a PFView for rendering PFAsset instances. A frame rectangle is given to initialize the view with specific boundaries. Instantiation follows the ‘create’ rule.

Class Methods

assetFromUrl:observer:

Instantiate an PFAsset object and load its contents from a local file URL or remote HTTP based url, which will result in the download of the file). Instantiation follows the ‘create’ rule.

+ (PFAsset *)assetFromUrl:(NSURL *)url observer:(PFAssetObserver *)o

Parameters

url

The url The url of the asset to be loaded

o

The observer registered to observe asset status

Return Value

A PFAsset instance if the file was loaded, nil on error.

Discussion

Instantiate an PFAsset object and load its contents from a local file URL or remote HTTP based url, which will result in the download of the file). Instantiation follows the ‘create’ rule.

Declared In

PFObjectFactory.h

viewWithFrame:

Instantiate a PFView for rendering PFAsset instances. A frame rectangle is given to initialize the view with specific boundaries. Instantiation follows the ‘create’ rule.

+ (PFView *)viewWithFrame:(CGRect)frame

Parameters

frame

The frame of reference for the view instance to be created

Return Value

A PFView instance conforming to the frame requested.

Discussion

Instantiate a PFView for rendering PFAsset instances. A frame rectangle is given to initialize the view with specific boundaries. Instantiation follows the ‘create’ rule.

Declared In

PFObjectFactory.h