• 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
loaded subview not expanding correctly.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loaded subview not expanding correctly.


  • Subject: loaded subview not expanding correctly.
  • From: Chris Schmitt <email@hidden>
  • Date: Fri, 25 Jan 2008 23:19:35 -0500

I have a window with a custom view in it. I want to load subviews into the custom view depending on the action of the window. So far I have this code from the "View Programming Guide for Cocoa":

[[theView superview] setNeedsDisplayInRect:[theView frame]];
[theView setFrame:newFrame];
[theView setNeedsDisplay:YES];

My view is loading fine, but my problem is in it's position. The subview is loading into the center of the superview and clipping the right side. I have set the autosizers to take up the whole panel and when I resize the window the subview does look like it is resizing, but there is still a gap on the left hand side.

Any tutorials or advice would be very helpful.

Thanks in advance


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: loaded subview not expanding correctly.
      • From: j o a r <email@hidden>
    • Re: loaded subview not expanding correctly.
      • From: Philip Bridson <email@hidden>
  • Prev by Date: Re: Help about the "QCCompositionLayer"
  • Next by Date: Re: loaded subview not expanding correctly.
  • Previous by thread: Re: CALayer and frame
  • Next by thread: Re: loaded subview not expanding correctly.
  • Index(es):
    • Date
    • Thread