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.
精彩评论