Re: IKImageBrowserView setSelectionIndex not selecting
Re: IKImageBrowserView setSelectionIndex not selecting
- Subject: Re: IKImageBrowserView setSelectionIndex not selecting
- From: Graham Cox <email@hidden>
- Date: Tue, 23 Jun 2009 12:51:37 +1000
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];
Seems like the IKImageBrowserView is not fully loaded when the call
is made, however, I do have an IKImageView which is selecting and
loading the first object in the ImageBrowserView's object list
correctly mat the same time I am calling the same time. Here is the
entire call:
- (void)updateDatasource
Where do you call this from?
You'll need to call it from -awakeFromNib to ensure the view is loaded.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden