[Openmcl-devel] Core Animation demo fails under OSX 10.6

Arthur Cater arthur.cater at ucd.ie
Thu Aug 26 14:05:03 UTC 2010


Thanks Ralph. There is hope then. I'll try it out.

Arthur

On Aug 26, 2010, at 2:57 PM, Raffael Cavallaro wrote:

>
> On Aug 26, 2010, at 9:13 AM, Arthur Cater wrote:
>
>> Is it likely, do you think, that subviews of a content-view could  
>> not have layers?
>
> They'd have to be configured *after* being added to the view  
> hierarchy, which probably means overriding addSubview:. See below.
>
>> In other words, would a window need to have a content-view that has  
>> layers and
>> no subviews, if one wants layers anywhere? And goodbye to any idea  
>> of a
>> layered-view subclass that acts in most respects like any other  
>> view subclass?
>
> You could override setContentView: in your custom window class (and  
> addSubview: in your layered-view class) and ensure that only after  
> it sets your layered-view as it's contentView (or subView), it has  
> your layered-view (or subView) do its layer initialization. i.e.,  
> you could call your super's addSubview: or setContentView:, and only  
> after this super call returns, do the contentView or subView layer  
> initialization.
>
> warmest regards,
>
> Ralph
>
>
> Raffael Cavallaro
> raffaelcavallaro at me.com
>
>
>
>
>




More information about the Openmcl-devel mailing list