Accessorizer writes your NSMutableArray indexed accessors
You simply write:
NSMutableArray *songs;
and Accessorizer does all the rest!
Indexed Accessors (NSMutableArray)
Using Collections such as NSMutableArray, NSSet or a Custom collection ...
Here’s a short video clip showing Accessorizer in action...





#pragma mark -
#pragma mark songs - Indexed Collection Declaration
/////// songs ///////
- (NSUInteger) countOfSongs;
- (Song *) objectInSongsAtIndex: (NSUInteger)idx;
- (void) insertObject: (Song *)aSong inSongsAtIndex: (NSUInteger)idx;
- (void) removeObjectFromSongsAtIndex: (NSUInteger)idx;
- (void) replaceObjectInSongsAtIndex: (NSUInteger)idx withObject: (Song *)aSong;
- (void) getSongs: (id *) buffer range: (NSRange)inRange;
- (void) insertSongs: (NSArray *) songArray atIndexes: (NSIndexSet *) indexes;
- (void) removeSongsAtIndexes: (NSIndexSet *) indexes;
- (void) replaceSongsAtIndexes: (NSIndexSet *) indexes withSongs: (NSArray *) songArray;
#pragma mark -
#pragma mark songs - Indexed Accessors
/////// songs ///////
- (NSUInteger) countOfSongs {
return [[self songs] count];
}
- (void) getSongs: (id *) buffer range: (NSRange)inRange {
[[self songs] getObjects: buffer range: inRange];
}
- (Song *) objectInSongsAtIndex: (NSUInteger)idx {
return [[self songs] objectAtIndex: idx];
}
- (void) insertObject: (Song *)aSong inSongsAtIndex: (NSUInteger)idx {
[[self songs] insertObject: aSong atIndex: idx];
}
- (void) insertSongs: (NSArray *) songArray atIndexes: (NSIndexSet *) indexes {
[[self songs] insertObjects: songArray atIndexes: indexes];
}
- (void) removeObjectFromSongsAtIndex: (NSUInteger)idx {
[[self songs] removeObjectAtIndex: idx];
}
- (void) removeSongsAtIndexes: (NSIndexSet *) indexes {
[[self songs] removeObjectsAtIndexes: indexes];
}
- (void) replaceObjectInSongsAtIndex: (NSUInteger)idx withObject: (Song *)aSong {
[[self songs] replaceObjectAtIndex: idx withObject: aSong];
}
- (void) replaceSongsAtIndexes: (NSIndexSet *) indexes withSongs: (NSArray *) songArray {
[[self songs] replaceObjectsAtIndexes: indexes withObjects: songArray];
}

Features

only $15