Inherits from BCKEAN13Code : BCKGTINCode : BCKCode : NSObject
Declared in BCKISMNCode.h

Overview

Specialized subclass of BCKEAN13Code to represent ISMN barcodes.

Initialise ISMN barcodes using:

Instance Methods

initWithContent:error:

Initializer for BCKISMNCode objects that accepts ISMN numbers formatted as a string rather than individual elements.

- (instancetype)initWithContent:(NSString *)content error:(NSError *__autoreleasing *)error

Parameters

content

The ISMN string including hyphens separating each ISMN element, must include the ISMN check digit, but WITHOUT the “ISMN” prefix. For example 979-0-2600-0043-8.

error

Optional output parameter to take an NSError in case the content cannot be encoded by this barcode class. Pass nil if not error information is not required.

Return Value

A BCKISMNCode object encoding the content string using EAN-13. Returns nil if the provided content cannot be encoded, the error object will provide error details.

Declared In

BCKISMNCode.h

initWithPublisherID:andItemID:andCheckDigit:error:

Designated initializer for BCKISMNCode objects.

- (instancetype)initWithPublisherID:(NSString *)publisherID andItemID:(NSString *)itemID andCheckDigit:(NSString *)checkDigit error:(NSError *__autoreleasing *)error

Parameters

publisherID

The ISMN Publisher ID element, must be between 3 and 7 digits.

itemID

The ISMN Item ID element, must be 2 and 6 digits.

checkDigit

The ISMN check digit, must be 1 digit numeric (0 to 9).

error

Optional output parameter to take an NSError in case the content cannot be encoded by this barcode class. Pass nil if not error information is not required.

Return Value

A BCKISMNCode object encoding the ISMN elements using EAN-13. Returns nil if the provided content cannot be encoded, the error object will provide error details.

Declared In

BCKISMNCode.h