Re: resizing a NSView
Re: resizing a NSView
- Subject: Re: resizing a NSView
- From: email@hidden (Henri Hansen)
- Date: Wed, 16 Jan 2002 15:49:36 +0100
email@hidden writes:
>
This code is working for me:
>
>
[IBresizableView_
>
setFrameSize:NSMakeSize(tSize.width,-tSize.height+SIZE_DIFF)];
>
[[IBresizableView_ superview] setNeedsDisplay:YES];
Thanks for your answer.
It seems, that it is not working for me. And the reason might be the
following:
You are setting setNeedsDisplay of the superview of the view, which is the
window in which the view is displayed. But acording to the documentation
and also to the feedback of ProjectBuilder NSWindow does not have a method
setNeedsDisplay. So terefor I wonder if this realy works for you or if you
have made some typos or if I have made some more mistakes in my code or
the settings of my view in IB are wrong ...
greetings Henri