开发者

Set view as a top view Cocoa OSX

I have some views on the window, of which I am concerned about two views and amo开发者_运维问答ng them one is the root view. I am adding the other as a subview in the init method of the super view. After that some views are being added and are overlapped on my subview. The problem is how to get my subview top of all other subviews to the rootview till required and how to prevent otherviews from taking down the mouse events.


-[NSView addSubview:positioned:relativeTo:] (as per the NSView class reference).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜