Removing layer-backed NSViews

  • Hey,
    I am trying to understand some layer backed NSView behavior.  Consider this
    example :

    I have a document window with one simple NSView with 'Core Animation'
    switched on in IB3.  This is layer backing the view.  The problem is, if i
    make a call to :

    [theLayerBackedView removeFromSuperview];

    There is a 1-2 second pause before the view disappears from the window
    on-screen.  Does anyone know why this might be?  If layer backing is
    disabled, it disappears straight away (as I would expect).

    I don't have layer backing switched on the window's content view (nor do I
    want to).  I only want to add & remove individual views with layer backing.

    Any thoughts are very gratefully received.

    Thanks,
    David
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today