Lynkeos
|
Enumerator on MyImageList. More...
#import <MyImageListEnumerator.h>
Instance Methods | |
(id) | - initWithImageList:startAt:directSense:skipUnselected: |
Base initializer. More... | |
(id) | - initWithImageList: |
Simplified initializer. More... | |
Protected Attributes | |
NSArray * | _itemList |
The list of items to enumerate. | |
NSUInteger | _listSize |
Number of first level items. | |
NSUInteger | _itemIndex |
Index of current first level item. | |
MyImageListItem * | _currentContainer |
Container being enumerated if any. | |
NSUInteger | _containerSize |
Number of items in the container. | |
NSUInteger | _itemIndexInContainer |
Index of current item in the container. | |
int | _step |
Sense of enumeration (1 or -1) | |
BOOL | _skipUnselected |
Do not enumerate unselected items. | |
NSRecursiveLock * | _lock |
Lock for multithreads access. | |
Enumerator on MyImageList.
This enumerator scans all the MyImageListItem images in a MyImageList. When the list contains a container, it scans each items inside it.
- (id) initWithImageList: | (NSArray*) | list |
Simplified initializer.
It initializes a direct enumerator for all items starting at the first item of the list.
list | The MyImageListItem array to scan |
- (id) initWithImageList: | (NSArray*) | list | |
startAt: | (MyImageListItem*) | item | |
directSense: | (BOOL) | direct | |
skipUnselected: | (BOOL) | skip | |
Base initializer.
It initializes a MyImageListEnumerator whith a custom starting point and a custom scanning direction.
list | The MyImageListItem array to scan |
item | The item to start with. If nil, the first or last (if reverse enumerator) is taken |
direct | Direct or reverse enumerator |
skip | Whether to skip unselected images |
References _containerSize, _currentContainer, _itemIndex, _itemIndexInContainer, _itemList, _listSize, _lock, _skipUnselected, _step, MyImageListItem::getParent, MyImageListItem::indexOfItem:, and MyImageListItem::numberOfChildren.