I m a little confused. The Apple Documentation states this:
Note: For performance reasons, Cocoa does not enforce clipping among sibling views or guarantee correct invalidation and drawing behavior when sibling views overlap. If you want a view to be drawn in front of another view, you should make the front view a subview (or descendant) of the rear view.
因此,根据这个观点,兄弟姐妹的观点不应该重叠, 否则,行为是没有定义的。
在
那么可可幻灯片样本的代码是错的吗?它只是工作上的巧合,还是文件已经过时了?自10.5以来已经过时了,也就是说?