Flickering in NSTableView with Core Animation
Flickering in NSTableView with Core Animation
- Subject: Flickering in NSTableView with Core Animation
- From: "Dave Verwer" <email@hidden>
- Date: Sun, 30 Mar 2008 07:33:47 +0100
I am having a strange problem with a simple use of CA. I am basically
using the same code as in this example
(http://www.cimgf.com/2008/03/03/core-animation-tutorial-wizard-dialog-with-transitions/)
so I have a window which I am using a CATransition to push in 3 views.
As in the example, I have set the wantsLayer of the sheet NSWindow to
YES and everything animates perfectly. My biggest difference to the
example is that the window is being displayed as a sheet and that I
have an NSTableView in one of my sub view.
The problem is when I interact with the NSTableView on the first view
the entire table is flickery like if you click and drag to scroll
through the items it flickers and goes completely white as you select
items. It seems to get better if you also go through all of the
controls in the view and also mark them to individualy wantsLayer YES
even though the CA docs seem to say this shouldnt be necessary.
However even with that if I set every column to wantsLayer then the
individual cells still flicker and you cant set wantsLayer on those ;)
If you turn wantsLayer off on the main window, the flicker goes away
with the NSTableView but of course the views do not animate.
I think it could be caused by the fade animation that the table seems
to do as soon as you enable wantsLayer on the Window but I have no
idea how to turn that off. It is as if it is trying to fade every time
you select an item maybe? even though this does not manifest as any
sort of fade but just as a blanking out to white for a second.
--
e-mail: email@hidden
web: http://shinydevelopment.com
Shiny Development Ltd. is registered in England, Registration Number:
05805802. Registered Office: 4 Claridge Court, Lower Kings Road,
Berkhamsted, Herts., HP4 2AF.
_______________________________________________
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