PFObjectFactory Class Reference

Inherits from NSObject
Declared in PFObjectFactory.h

Overview

The PFObjectFactory can instantiate appropriate PFAsset instances and PFView instances

+ registerLicense:

Register the Panframe license

+ (void)registerLicense:(const char *)licenseText

Parameters

licenseText

The Panframe license bound to your bundle id

Discussion

Register the Panframe license

Declared In

PFObjectFactory.h

+ assetFromUrl:observer:

Instantiate an PFAsset object and load its contents from a local file URL or remote HTTP based url. 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. 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