Re: IKImageBrowserView setSelectionIndex not selecting

2009-06-25 Thread Graham Cox
On 26/06/2009, at 2:19 AM, Richard Gutierrez wrote: NSArray* path = [NSArray arrayWithObject:url]; if (path) { [NSThread detachNewThreadSelector:@selector(addImagesWithPaths:) toTarget:self withObject:path]; } [imageBrowser setSelectionIndexes:[NSIndexSet indexSetWithIndex

Re: IKImageBrowserView setSelectionIndex not selecting

2009-06-25 Thread Ramakrishna Vavilala
You need to call [imageBrowser reloadData]. When you call setSelectionIndexes there need to be items in the list calling reloadData will ensure that there are items. On Thu, Jun 25, 2009 at 12:19 PM, Richard Gutierrez wrote: > I did place this in the awakeFromNib... I also tried placing it in > "

Re: IKImageBrowserView setSelectionIndex not selecting

2009-06-25 Thread Richard Gutierrez
I did place this in the awakeFromNib... I also tried placing it in "updateDatasource", "addImagesWithPath", and "addImagesWithPaths". All of the calls do not work. Here is my awakeFromNib code: - (void)awakeFromNib { images = [[NSMutableArray alloc] init]; importedImages = [[NSMutableAr

Re: IKImageBrowserView setSelectionIndex not selecting

2009-06-22 Thread Graham Cox
On 23/06/2009, at 10:08 AM, Richard Gutierrez wrote: I have been researching extensively on how to set an IKImageBrowserView's initial selection upon load to 0 index. Here is the call I am making: [imageBrowser setSelectionIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO]

IKImageBrowserView setSelectionIndex not selecting

2009-06-22 Thread Richard Gutierrez
I have been researching extensively on how to set an IKImageBrowserView's initial selection upon load to 0 index. Here is the call I am making: [imageBrowser setSelectionIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO]; Seems like the IKImageBrowserView is not fully loaded whe