Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Animation: Layer vs NSTextView




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Core Animation: Layer vs NSTextView (From: Troy Stephens <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.