• 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
values for Z Position in Layers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

values for Z Position in Layers


  • Subject: values for Z Position in Layers
  • From: Steve Sheets <email@hidden>
  • Date: Sun, 28 Oct 2007 00:39:12 -0400

Good evening all...

I have a couple quick questions regarding the Z value of a Layer, that the documentation does not explain.

What should the Z Position property of CALayers be set to?

The property is a float value, but the documentation does not explain the intended ranged. Often properties that are float are meant to be of the range 0.0 to 1.0. Is this the case for Z?

If not, is there any suggested range for this value? For example, even though it is a float, is it more efficient to set the property to integers (ex. 1.0, 2.0, 10.0)?

Lastly, does changing a Z value for a layer change the layer depth position in regards to sibling layers or does it change the depth in relationship to all layers on the view/window? For example, if sibling layers A & B have values 1.0 & 2.0, then B layer is stacked on top of the A layer. If Layer A has sublayer C, can C's Z value be changed so that it appears on top of B?

While i have had some success programming Core Animation, and the new CALayer objects, I do have some questions that I will be asking here and on other locations. If anyone wants to talk about Layer animation, please feel free to contact me directly. I will shortly have some Demo Apps and source code examples, that I will be willing to release.

Thanks,

Steve Sheets
Midnight Mage Software

_______________________________________________

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: values for Z Position in Layers
      • From: email@hidden
  • Prev by Date: mouseUp: in TableView on Leopard
  • Next by Date: Re: FYI - Resolution Independence
  • Previous by thread: Re: mouseUp: in TableView on Leopard
  • Next by thread: Re: values for Z Position in Layers
  • Index(es):
    • Date
    • Thread