• 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
Core Animation: Layer vs NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Animation: Layer vs NSTextView


  • Subject: Core Animation: Layer vs NSTextView
  • From: Stéphane Sudre <email@hidden>
  • Date: Thu, 1 Nov 2007 18:21:23 +0100

Is the Layer mode of Core Animation compatible with NSTextView?

I'm seeing the following issues when I enable setWantsLayer: for a hierarchy that includes a NSTextView:

- while my NSTextView is supposed to have a transparent background (thanks to a subclass of NSScrollView), it is no more transparent with the layer mode.

- when I fill the NSTextView with the content of a medium size text file (24 KB) using the readFromURL... NSTextStorage API, it takes 8 seconds to display the file in the text view. It's instantaneous without the layer view mode enabled.

I'm also seeing strange animation when I run a fade in/fade out animation to hide a NSScrollView (that includes a NSTextView) and display a simple NSView with a NSTextField. The verticall scroller of the NSScrollView does not seem to be aware there is fading effect until the animation is completed.

Are there some tricks to use to deal with Core Animation and NSTextView?


_______________________________________________

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


  • Follow-Ups:
    • Re: Core Animation: Layer vs NSTextView
      • From: Troy Stephens <email@hidden>
    • Re: Core Animation: Layer vs NSTextView
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: NSBitmapImageRep byte/color component ordering
  • Next by Date: CILinearGradient drawing backwards in 10.5
  • Previous by thread: Re: Error (1000) creating CGSWindow
  • Next by thread: Re: Core Animation: Layer vs NSTextView
  • Index(es):
    • Date
    • Thread