Skip navigation.
 
mlRe: CoreAnimation weird problems with NSView animator
FROM : Milen Dzhumerov
DATE : Fri Mar 28 17:07:11 2008

Hi,

On 27 Mar 2008, at 21:03, Troy Stephens wrote:
> On Mar 26, 2008, at 9:12 AM, Milen Dzhumerov wrote:

>>
>> [snip]

>
> This should produce a fade transition, as long as self.generalView's 
> superview, or an ancestor view higher up, has wantsLayer == YES.


This seems to be the problem. The NSView which I was trying to fade 
was the content view, so it didn't have an ancestor which was layer-
backed. How should I animate a view which doesn't have a layer-backed 
superview?

>

>> [snip] I also noticed some other unusual problems
>> with the said NIB:
>> - Animations work on a random basis (CA animations)

>
> A more specific example would help.


I was able to isolate the problem and reproduce it several times. As 
it happens on a random basis, the sample projects which isolate the 
issues sometimes have to be cleaned / compiled several times. I have 
also taken screencasts for those that do not have Xcode 3.1 at hand. 
I'm very interested to see whether someone can reproduce these or it's 
just my setup somehow.

Reproducible case 1 - http://www.doc.ic.ac.uk/~md207/ca_bugs/nsviews/ExcavateBugCase1.zip
Reproducible case 2 - http://www.doc.ic.ac.uk/~md207/ca_bugs/nsviews/ExcavateBugCase2.zip
Reference behavior  - http://www.doc.ic.ac.uk/~md207/ca_bugs/nsviews/ExcavateReferenceBehavior.zip

Screencaps of the bugs on my test machine:
http://www.doc.ic.ac.uk/~md207/ca_bugs/nsviews/CA_missing_button_1.mov
http://www.doc.ic.ac.uk/~md207/ca_bugs/nsviews/CA_missing_button_2.mov
http://www.doc.ic.ac.uk/~md207/ca_bugs/nsviews/CA_missing_text.mov

Kind regards,
Milen

Related mailsAuthorDate
mlCoreAnimation weird problems with NSView animator Milen Dzhumerov Mar 26, 17:12
mlRe: CoreAnimation weird problems with NSView animator Troy Stephens Mar 27, 22:03
mlRe: CoreAnimation weird problems with NSView animator Milen Dzhumerov Mar 28, 17:07