I have a custom view contain NSImageView (myImageView) and NSButton (myButton). When user resize window (using mouse click and drag in bottom right corner of window), myImageView and myButton is autoresized. But custom view is unlike orginal. How to fix it? Please help me.

Thanks a lot.

link|flag
Have you set an autoresizing mask for your custom view? You can do that either in Interface Builder or programatically via -[NSView setAutoresizingMask:]. – Bavarious 2 hours ago
I have already set autoresizing mask for my custom view, myImageView and myButton, but myButton looks like unlike orginal when autoresizing – user718408 50 mins ago
I’m not sure I understand what you mean. Maybe a screenshot would make it easier to understand your question. – Bavarious 46 mins ago
Here is two picture showing what I want: before autoresizing,and after autoresizing – user718408 29 mins ago
And the problem is that the button is being resized, or placed with different margins, or both? – Bavarious 18 mins ago
show 2 more comments

Know someone who can answer? Share a link to this question via email, twitter, or facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.