Re: Layer-hosting views as superview?
Re: Layer-hosting views as superview?
- Subject: Re: Layer-hosting views as superview?
- From: Markus Spoettl <email@hidden>
- Date: Wed, 21 Mar 2018 14:36:03 +0100
On 3/21/18 14:26, Markus Spoettl wrote:
It seems the old rule that layer-hosting views must not have sub-views is no
longer
valid. I remember in the old days you couldn't have layer-hosting NSViews that
have
sub-views. I can't find the portion in the documentation that explicitly
forbids it
(I'm sure it was there).
Can that be right?
As usual shortly after sending the message I finally find something. In the docs for
-wantsLayer it says:
... Similarly, do not add subviews to a layer-hosting view. ...
BUT I also found a statement on stackoverflow by Corbin Dunn saying that it is
OK
https://stackoverflow.com/questions/10719368/are-layer-hosting-nsviews-allowed-to-have-subviews?rq=1
So it seems OK since 10.8 Mountain Lion. Or not.
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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