开发者

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开发者_Go百科 get always my current Content View, how I can do that?Something like this [window myCurrentContentView]; or window.view , I couldn't find it. Thanks.


[window contentView];

should do the trick.

NSWindow documentation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜