I have one main NSWindow that is empty, and 5 NSViews. NSViews have different buttons and tags, etc., and the window is empty. The first displayed view is a menu linked to other views and back. This works great and the views switch well.
However, if the NSWindow is of a certain size, and the NSView is larger, then it spills out of the NSWindow and is trimmed.
Is there a way that when I do this:
[_window setContentView: theNewView]
also be sized _windowto fit the new view? If possible, can this be done with animation?
source
share