Re: Core Animation: Layer vs NSTextView
Re: Core Animation: Layer vs NSTextView
- Subject: Re: Core Animation: Layer vs NSTextView
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 1 Nov 2007 23:34:19 +0100
On jeudi, novembre 1, 2007, at 11:16 PM, Troy Stephens wrote:
Hi Stéphane,
8 seconds seems anomalously long; I don't know what would cause that.
But the fade-in behavior is an essentially unavoidable artifact of the
need to use CATiledLayers to back the document views of NSScrollViews,
to allow them to potentially exceed the 2046x2046 texture size limit.
I think I will avoid the animation then (BTW, it's not a power of 2)
For the transparency issue: Can you describe the containing view
hierarchy and specify which other views (ancestors of the NSTextView
in particular) have "wantsLayer" enabled for them? This sounds worthy
of a bug report.
The hierarchy is as "simple" as this:
NSWindow
|
+- ContentView (NSView?)
|
+- NSSplitView (thin separator used)
|
+- Custom View (Opaque subclass of NSView)
|
+- NSView
|
+- Custom View (Opaque subclass of NSView)
|
+- Custom View (subclass of NSView) (A)
|
+- ICBackgroundImageView (subclass of
NSImageView) (B)
|
+- Custom View (subclass of
NSView)
|
+- ICScrollView (non
opaque subclass of NSScrollView)
|
+-
ICPresentationTextView (subclass of NSTextView)
The problem appears when I call setWantsLayer: on A or B for instance.
_______________________________________________
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