• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Layer-hosting views as superview?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Layer-hosting views as superview?
      • From: Matt Jacobson <email@hidden>
References: 
 >Layer-hosting views as superview? (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Layer-hosting views as superview?
  • Next by Date: Re: Creating object graph in swift, Core Data or vanilla objects?
  • Previous by thread: Layer-hosting views as superview?
  • Next by thread: Re: Layer-hosting views as superview?
  • Index(es):
    • Date
    • Thread