On Tue, May 17, 2011 at 10:21 AM, Keith Duncan <[email protected]> wrote:
>
>> The basic problem comes about when a view in the nib has wantsLayer=NO, but 
>> the view itself always wants to be layer backed. If you setWantsLayer:YES 
>> inside of -initWithFrame:, then by the time you get to -awakeFromNib 
>> wantsLayer=NO again
>
> Would there be any issue with overriding -setWantsLayer: to drop the [view 
> setWantsLayer:NO] invocation, only allowing [view setWantsLayer:YES] to pass 
> through to the NSView implementation?

Well, there's no guarantee that nib loading goes through -setWantsLayer:.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list ([email protected])

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/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to