Sam Manzer
Sam Manzer

Reputation: 1220

Cocoa Views do not Resize when Parent Window Resized

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

Answers (1)

teknosavvytom
teknosavvytom

Reputation: 111

Please check out whether the answer posted for [question]:Cocoa PDFView does not resize
solved your problem.

Upvotes: 1

Related Questions