PDA

View Full Version : Refresh imagebrowserview with edited image




becker666
Aug 21, 2011, 04:11 PM
Been trying this from several angles so far no go, it works fine loading the images and they scroll nicely now the images are modified somewhere else
in the code,i grab the current image and display it on a zoomed nsimage

int sel_idx= [[aBrowser selectionIndexes] firstIndex];

drawItem * cur_item;

cur_item = [images_4_top objectAtIndex:sel_idx];

NSImage *zoomed = [cur_item imageRepresentation];

[chartFull setImage:zoomed];

and I DO get the modified image but the thumbnails do not refresh, tried the reloadData, delete and add,changing the ID and reloading the images but no cigar it looks like it caches it and they don't change from the first time it was loaded was thinking about appending copies with a different ID's but it sounds too tweaky and I need to do some processing when an item is clicked


Is this actually possible in an Imagebrowserview???? or should i drop it and use an NSViewCollection??? which is also hard to set if I have it inside a CustomView as all docs show it when it is on a window... what gives...


Cheers