Instance Method

initWithMaximumPrice:currencyCode:

Initializes the object with the specified maximum price information.

Declaration

- (instancetype)initWithMaximumPrice:(NSDecimalNumber *)maximumPrice currencyCode:(NSString *)currencyCode;

Parameters

maximumPrice

The maximum price value. This value is assigned to the maximumPrice property.

currencyCode

The ISO 4217 currency code to apply to the price information. You can get a list of possible currency codes using the ISOCurrencyCodes method of NSLocale. For example, the string “USD” corresponds to United States dollars.

Return Value

An initialized price range object or nil if the object could not be created.

Discussion

This method does not assign a value to the minimumPrice property.

See Also

Creating a Price Range Object

- initWithPrice:currencyCode:

Initializes the object with the specified price information.

- initWithRangeBetweenPrice:andPrice:currencyCode:

Initializes the object with the specified range of prices.

- initWithMinimumPrice:currencyCode:

Initializes the object with the specified minimum price information.