[英]How to get current NSView in Cocoa?
I'm changing my content View from applicaiton 我正在从应用程序更改内容视图
[window setContentView:otherView];
[window setContentView:otherView2]; //etc
What I need, to be able to get always my current Content View, how I can do that?Something like this [window myCurrentContentView]; 我需要什么才能始终获得当前的Content View,我该怎么做呢? [window myCurrentContentView]; or window.view , I couldn't find it.
或window.view,我找不到它。 Thanks.
谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.