开发者

How to get current NSView in Cocoa?

开发者 https://www.devze.com 2023-04-08 04:20 出处:网络
I\'m changing my content View from applicaiton [window setContentView:otherView]; [window setContentView:otherView2]; //etc

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

精彩评论

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