Field editors in layer-hosting views
Field editors in layer-hosting views
- Subject: Field editors in layer-hosting views
- From: Kyle Sluder <email@hidden>
- Date: Wed, 28 Apr 2010 15:03:40 -0700
Hi all,
We have a layer-hosting view that needs to contain a field editor.
Opinion is split on whether adding subviews to a layer-hosting (*not*
layer-backed) view is allowed but frowned upon [1,2] or just plain
verboten [n,n+1].
In our layer-hosting view, we configure the view's layer with
geometryFlipped=YES so that we can lay out the view's contents from
top-to-bottom. We perform no layer customization on our field editor.
When we add the field editor as the subview of our view, it appears
mirrored around our view's middle horizontal axis (that is, a field
editor that should appear at the top of the view appears upside-down
at the bottom of the view).
Should this not work? Is it a bug that perhaps AppKit does not check
for flippedness when assigning the field editor a layer? Is there a
recommended alternative approach? Perviously our flipped layer was a
sublayer of an AppKit-assigned layer, but violating the "don't mess
with layer-backed view layers" rule gave us many problems and we
resolved to go about this the right way. I suppose I could make the
flipped layer a sublayer of a separate empty hosted layer, thus making
the flipped layer and the field editor's layer peers.
--Kyle Sluder
[1]: http://lists.apple.com/archives/Cocoa-dev/2008/Nov/msg00902.html
[2]: http://lists.apple.com/archives/quartz-dev/2009/Apr/msg00063.html
[3]: http://lists.apple.com/archives/Cocoa-dev/2009/Apr/msg01266.html
[4]: http://lists.apple.com/archives/cocoa-dev/2008/Nov/msg01856.html
_______________________________________________
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