M mkristain macrumors regular Original poster Aug 18, 2011 115 0 Sep 24, 2011 #1 Hi all, i want to display currently inserting image in IKImageBrowserView so please tell me how can i scroll the NSScrollView to the bottom. thanks.
Hi all, i want to display currently inserting image in IKImageBrowserView so please tell me how can i scroll the NSScrollView to the bottom. thanks.
jiminaus macrumors 65816 Dec 16, 2010 1,449 1 Sydney Sep 24, 2011 #2 Try sending scrollIndexToVisibile: to your IKImageBrowserView object with the index of the newly inserted image.
Try sending scrollIndexToVisibile: to your IKImageBrowserView object with the index of the newly inserted image.
M mkristain macrumors regular Original poster Aug 18, 2011 115 0 Sep 24, 2011 #3 yes i already try this but its not working. Code: [imageBrowser scrollIndexToVisible:[images count]]; even after using this when i move down the vertical scroll bar to down its automatically move to up and show first visible item.
yes i already try this but its not working. Code: [imageBrowser scrollIndexToVisible:[images count]]; even after using this when i move down the vertical scroll bar to down its automatically move to up and show first visible item.
jiminaus macrumors 65816 Dec 16, 2010 1,449 1 Sydney Sep 24, 2011 #4 mkristain said: yes i already try this but its not working. Code: [imageBrowser scrollIndexToVisible:[images count]]; even after using this when i move down the vertical scroll bar to down its automatically move to up and show first visible item. Click to expand... [image count] will not be a valid index. It's not the last index, but one off the last index. Try Code: [imageBrowser scrollIndexToVisible:[images count] - 1];
mkristain said: yes i already try this but its not working. Code: [imageBrowser scrollIndexToVisible:[images count]]; even after using this when i move down the vertical scroll bar to down its automatically move to up and show first visible item. Click to expand... [image count] will not be a valid index. It's not the last index, but one off the last index. Try Code: [imageBrowser scrollIndexToVisible:[images count] - 1];