• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Layer-Hosting View on NSTabViewItem and switching Pages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Layer-Hosting View on NSTabViewItem and switching Pages


  • Subject: Re: Layer-Hosting View on NSTabViewItem and switching Pages
  • From: Joachim Deelen <email@hidden>
  • Date: Wed, 9 Apr 2008 16:23:21 +0200

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 (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

Joachim Deelen

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



_______________________________________________

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


References: 
 >Layer-Hosting View on NSTabViewItem and switching Pages (From: Joachim Deelen <email@hidden>)

  • Prev by Date: Re: How to add number do Dock Icon like in Mail?
  • Next by Date: Re: Saving NSFonts and changedFont: trouble
  • Previous by thread: Layer-Hosting View on NSTabViewItem and switching Pages
  • Next by thread: componentsToDisplayForPath (running as root)
  • Index(es):
    • Date
    • Thread