loaded subview not expanding correctly.
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