Re: NSViews not displayed properly when the window is resized
Re: NSViews not displayed properly when the window is resized
- Subject: Re: NSViews not displayed properly when the window is resized
- From: Daniel Jalkut <email@hidden>
- Date: Sat, 25 Nov 2006 10:50:09 -0500
Setting the frame of the new view before you replaceSubview should
work. Perhaps you should show us how, exactly, you're doing that.
Daniel
On Nov 25, 2006, at 9:29 AM, vibhatha v wrote:
Hi,
I have a NSView in my window.
This view is being replaced by three different views when i click 3
different buttons.
i used [fixedView replaceSubview:[subviews objectAtIndex:0]
with:view1]; to
replace the different views.
My problem is now, if i resize my window and click a button so as
to display
a different view, the new view does not occupy the proper position
i.e. the
old frame size is retained and the new view does not fit in properly.
Suppose, i increase the size of my window, and try to show a
different view,
the new view still shows me to be of a smaller size, where as i
want my new
view to fit in the whole place.
i tried using setFrame function to set the frame size but it does
not seem
to work. i have tried to get the new frame size in windowDidResize
function.
But this does not seem to work.
Can anyone please help me place my different views in proper
positions so as
to fit the screen?
Thanks and Regards,
Vibhatha.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
sweater.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden