Class

NKIssue

An instance of the NKIssue class represents an issue of a newsstand content application.

Declaration

@interface NKIssue : NSObject

Overview

An NKIssue object must have a name and a date. When you create the object using the addIssueWithName:date: method of the NKLibrary class, you must supply these two values. In addition, an NKIssue object can be associated with one or more assets that are downloading. These assets are represented by NKAssetDownload objects, which you create and associate with the issue by calling the addAssetWithRequest: method. If there are downloading assets, the NKIssue object has a status of NKIssueContentStatusDownloading.

As assets are being downloaded for an issue, you should put the processed (for example, unarchived or assembled) issue assets in the sandbox file-system location identified by contentURL. After all downloads of assets for an issue have completed, NKIssue posts the NKIssueDownloadCompletedNotification notification which objects in an application can observe.

Topics

Managing Issue Assets

- addAssetWithRequest:

Adds an asset to the list of assets to be downloaded and returns an instance representing that asset.

downloadingAssets

Returns the assets that are currently downloading for the newsstand issue.

Accessing the Location of Issue Content

contentURL

The location in the application sandbox where issue content should be stored.

Accessing Attributes of an Issue

status

The status of the newsstand issue.

date

The date of the newsstand issue.

name

The name of the newsstand issue.

Constants

NKIssueContentStatus

The status of the newsstand issue.

Notifications

NKIssueDownloadCompletedNotification

Posted when all assets of the issue have been downloaded.

Relationships

Inherits From