Re: Problem using zPosition on layer backed views
Re: Problem using zPosition on layer backed views
- Subject: Re: Problem using zPosition on layer backed views
- From: Kyle Sluder <email@hidden>
- Date: Sun, 31 Oct 2010 15:14:28 -0700
On Oct 31, 2010, at 1:40 PM, Gideon King <email@hidden> wrote:
> 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...
I don't know if it's safe to do on iOS either, but I do know that it won't work on Mac OS X. The layer/view syncing machinery will see to that.
>
> Oh well, I'll just have to sort the subviews array.
It's a shame you can't reorder subviews once they've been added to the window. But this does sound like your safest bet. Hit testing will work too.
--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