diff options
author | Sven Gothel <[email protected]> | 2012-01-16 13:15:50 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-01-16 13:15:50 +0100 |
commit | 26368a0ab1dfd612f29488cd1087c679868f7fbf (patch) | |
tree | f683a446471b4687564cbbafd027f8645d65ae44 /src/nativewindow/native | |
parent | f5c8cdad92687782184122fecc341258a6283d89 (diff) |
NEWT/OSX CALayer Animation Fix: Use '[layer removeAllAnimations]', '[layer removeAnimationForKey: kCAOnOrderIn, kCAOnOrderOut, kCATransition]' doesn't work
Diffstat (limited to 'src/nativewindow/native')
-rw-r--r-- | src/nativewindow/native/macosx/OSXmisc.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nativewindow/native/macosx/OSXmisc.m b/src/nativewindow/native/macosx/OSXmisc.m index d64973b67..4aa455626 100644 --- a/src/nativewindow/native/macosx/OSXmisc.m +++ b/src/nativewindow/native/macosx/OSXmisc.m @@ -235,11 +235,6 @@ JNIEXPORT jlong JNICALL Java_jogamp_nativewindow_macosx_OSXUtil_CreateCALayer0 // CALayer* layer = [[CALayer alloc] init]; CALayer* layer = [CALayer layer]; - // no animations for add/remove/swap sublayers etc - [layer removeAnimationForKey: kCAOnOrderIn]; - [layer removeAnimationForKey: kCAOnOrderOut]; - [layer removeAnimationForKey: kCATransition]; - // initial dummy size ! CGRect lRect = [layer frame]; lRect.origin.x = 0; @@ -285,6 +280,11 @@ JNIEXPORT void JNICALL Java_jogamp_nativewindow_macosx_OSXUtil_AddCASublayer0 // simple 1:1 layout ! [subLayer setFrame:lRectRoot]; [rootLayer addSublayer:subLayer]; + + // no animations for add/remove/swap sublayers etc + // doesn't work: [layer removeAnimationForKey: kCAOnOrderIn, kCAOnOrderOut, kCATransition] + [rootLayer removeAllAnimations]; + [subLayer removeAllAnimations]; }]; DBG_PRINT("CALayer::AddCASublayer0.X: %p . %p (refcnt %d)\n", rootLayer, subLayer, (int)[subLayer retainCount]); JNF_COCOA_EXIT(env); |