HIViewSetZOrder equivalent in cocoa
What is the equivalent of carbon fun开发者_如何学Cction HIViewSetZOrder in cocoa ?
Thanks.
You should rely only on view hierarchy (parents,childs) to layer your views. Overlapping views are a bad idea.
There is a - (void)addSubview:(NSView *)aView positioned:(NSWindowOrderingMode)place relativeTo:(NSView *)otherView method but in order to layer your views you'll have to remove/add them again.
Alternatives are to use NSWindow or Core Animation.
精彩评论