• 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: Problem using zPosition on layer backed views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem using zPosition on layer backed views


  • Subject: Re: Problem using zPosition on layer backed views
  • From: Gideon King <email@hidden>
  • Date: Mon, 1 Nov 2010 06:40:22 +1000

Thanks Kyle

That's what I thought before I went into it to start with, but I found posts from people who appeared to be using it on layer backed views, and the only problem they said they were having was that it didn't animate the changes to the z order. I wonder if things are different on iOS and maybe they were talking about UIViews...

Oh well, I'll just have to sort the subviews array.

Regards

Gideon

On 01/11/2010, at 6:35 AM, Kyle Sluder wrote:

> On Oct 31, 2010, at 5:13 AM, Gideon King <email@hidden> wrote:
>
>> I have a view with several subviews, all layer backed. These subviews are siblings. I want to bring one of them in front of the others, so I set the zPosition of the others to a zPosition of 1 and the one I want in front to a zPosition of 2. Nothing happens - the one I want in front is still drawn behind the other ones. While I could reorder the subviews in the array, I really don't want to do that if I don't have to - I would rather use the zPosition.
>
> Since NSView doesn't have a zPosition property, I can only assume you're setting the layers' zPosition.
>
> You can't do that. Do not muck with layer backed views' layers.
>
> --Kyle Sluder

_______________________________________________

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: Problem using zPosition on layer backed views
      • From: Kyle Sluder <email@hidden>
References: 
 >Problem using zPosition on layer backed views (From: Gideon King <email@hidden>)
 >Re: Problem using zPosition on layer backed views (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Determine current mouse cursor position
  • Next by Date: Re: Problem using zPosition on layer backed views
  • Previous by thread: Re: Problem using zPosition on layer backed views
  • Next by thread: Re: Problem using zPosition on layer backed views
  • Index(es):
    • Date
    • Thread