NSViews not displayed properly when the window is resized
NSViews not displayed properly when the window is resized
- Subject: NSViews not displayed properly when the window is resized
- From: "vibhatha v" <email@hidden>
- Date: Sat, 25 Nov 2006 19:59:09 +0530
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:
This email sent to email@hidden