not sure how to do this properly, although i believe it's easy (or maybe it's more complex then i assume)...
so i'm trying to call the second method from the third action method... both are in the same class... compiler states that "view" and "indexes" are undeclared... i've included the first method to show that the first and second are similar, so i can't simply write [self imageBrowser:nil];, which is what i often do for calling other functions that don't have lots of instance variables and other call functions attached.
Code:
- (id)imageBrowser:(IKImageBrowserView *) view itemAtIndex:(int) index
{
return [images objectAtIndex:index];
}
- (void)imageBrowser:(IKImageBrowserView*)view removeItemsAtIndexes: (NSIndexSet*)indexes
{
[images removeObjectsAtIndexes:indexes];
}
- (IBAction)removeSwatchButton:(id)sender
{
NSLog (@"Remove Button");
[self imageBrowser:(IKImageBrowserView*)view removeItemsAtIndexes: (NSIndexSet*)indexes];
}
so i'm trying to call the second method from the third action method... both are in the same class... compiler states that "view" and "indexes" are undeclared... i've included the first method to show that the first and second are similar, so i can't simply write [self imageBrowser:nil];, which is what i often do for calling other functions that don't have lots of instance variables and other call functions attached.