FROM : Stéphane Sudre
DATE : Thu Nov 01 23:34:19 2007
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.
DATE : Thu Nov 01 23:34:19 2007
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.
| Related mails | Author | Date |
|---|---|---|
| Stéphane Sudre | Nov 1, 18:21 | |
| Scott Anguish | Nov 1, 22:35 | |
| Troy Stephens | Nov 1, 23:16 | |
| Stéphane Sudre | Nov 1, 23:34 |






Cocoa mail archive

