Reputation: 1220
I have tried to convert different view objects to make them resizable by calling the following code within my derived class:
[self setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable|NSViewMinXMargin|NSViewMaxXMargin|NSViewMinYMargin|NSViewMaxYMargin ];
NSView* sv = [self superview];
[sv setAutoresizesSubviews:YES];
However, this hasn't worked for the views that I have tried (NSImageView and PDFView). They do not resize when the parent window is resized. Is there something else that I need to call?
Upvotes: 1
Views: 897
Reputation: 111
Please check out whether the answer posted for [question]:Cocoa PDFView does not resize
solved your problem.
Upvotes: 1