Inherits from NSOperation
Declared in YLOperation.h
YLOperation.m

Overview

This is the base class for all operations used by YLCache to load/render/write pre-rendered images.

Tasks

Other Methods

Initialization

Properties

document

Reference to the document.

@property (nonatomic, readonly) YLDocument *document

Discussion

Reference to the document.

Declared In

YLOperation.h

image

Reference to the image.

@property (nonatomic, retain) UIImage *image

Discussion

Reference to the image.

Declared In

YLOperation.h

page

Page number starting from 0.

@property (nonatomic, readonly) NSUInteger page

Discussion

Page number starting from 0.

Declared In

YLOperation.h

path

Reference to the path of the image.

@property (nonatomic, readonly) NSString *path

Discussion

Reference to the path of the image.

Declared In

YLOperation.h

size

Type of the image.

@property (nonatomic, readonly) YLPDFImageSize size

Discussion

Type of the image.

Declared In

YLOperation.h

Instance Methods

initWithDocument:page:size:path:

Initializes a YLOperation instance and returns it to the caller.

- (id)initWithDocument:(YLDocument *)document page:(NSUInteger)page size:(YLPDFImageSize)size path:(NSString *)path

Parameters

document

Reference to the document.

page

Page number starting from 0.

size

Type of image.

path

Filesystem path that should be used to load/write an image from/to.

Return Value

An initialized YLOperation instance.

Discussion

Initializes a YLOperation instance and returns it to the caller.

Declared In

YLOperation.h