Me again,

I found a solution!

Im switching Tab-Pages with selectTabViewItemWithIdentifier: After switching, I sent a Notification that a switch occurred thereby stopping all animations and hiding the TextLayer. This was the first mistake. Now I send the notification first, then switching the Tab-Page.

The second mistake was: I hid the CATextLayer with "setHidden:YES". But this triggers an implicit animation which takes some time. So I had to disable animation first:

[CATransaction begin];
[CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions];
[textLayer setHidden:YES];
[CATransaction commit];

Now it works flawlessly

regards
Joachim


Am 09.04.2008 um 14:15 schrieb Joachim Deelen:

Hi All,

Maybe someone can Help Me?!

I've created a NSTabView with two Pages (NSTabViewItems). On the second Page I got a Custom-View, that is hosting a Layer-Tree. This tree consist of a CATextLayer, within a CAScrollLayer, within a CALayer. The CALayer is the Root-Layer of the View.

When I switch to the second Page, everything works as expected. But after switching back to the first Page, the Text within the CATextLayer remains displayed for about one second thereby disturbing the appearance of the first page.

I've tried to hide the View, before switching the pages. I stop every Animation of the Layers immediately before the switch actually happens. I even tried to set the opacity of the Layers to 0.0 (and called setNeedsDisplay) but to no avail.

Functionality of both Pages is as expected, but the short remains of the Text are really annoying.

regards
Joachim Deelen

AQUARIUS-software
http://www.aquarius-software.de



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev%40deelen.de

This email sent to [EMAIL PROTECTED]

Joachim Deelen

AQUARIUS-software
http://www.aquarius-software.de



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to