• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSViews not displayed properly when the window is resized
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSViews not displayed properly when the window is resized
      • From: Chris Hanson <email@hidden>
    • Re: NSViews not displayed properly when the window is resized
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: Re: Deployment target set to 10.4, still launches on 10.3.9
  • Next by Date: [SOLVED] How can I get an instance specific identifier?
  • Previous by thread: Re: Deployment target set to 10.4, still launches on 10.3.9
  • Next by thread: Re: NSViews not displayed properly when the window is resized
  • Index(es):
    • Date
    • Thread