Refresh imagebrowserview with edited image

Discussion in 'Mac Programming' started by becker666, Aug 21, 2011.

  1. becker666, Aug 21, 2011
    Last edited: Aug 21, 2011

    becker666 macrumors newbie

    Aug 21, 2011
    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...


Share This Page