You are here

initWithMaxItems:skipCount:sortProperty:sortAscending

- (id)initWithMaxItems:(int)maxItems skipCount:(int)skipCount sortProperty:(NSString *)sortProperty sortAscending:(BOOL)sortAscending - Initializes a listing context with a specific value for max items, skip count, sort property and sort direction.

Parameters

(int) maxItems
The maximum number of items to retrieve in the listing context.
(int) skipCount
The number of items in the maximum possible result set to skip.
(NSString *)sortProperty
The property to sort on.
(BOOL) sortAscending
Set to true to specify ascending sort order.

Returns

(id) - returns the initialized listing context.

Example


    [listingContext initWithMaxItems:50 skipCount:0];