On 7 May 2010, at 5:14 AM, Nial Giacomelli wrote:
> Within IB I have set my TRTransitionView sizing set to stretch to the bounds
> of my window, and ideally I would like its subviews to stretch to the bounds
> of the TRTransitionView container.
By "stretch _to_ the bounds" do you mean what the phrase implies, that you
expect the view to grow by itself from a size that does not fill its container
to a size that does? That won't happen; you have to set the initial position
and size of views yourself. Or do you mean "stretch _with_ the bounds," so its
size changes in parallel with changes to the size of the container? That can be
done using the Size inspector in Interface Builder. I believe you mean the
latter, but I want to be sure.
> The issue I'm seeing is that after resizing my applications window, the
> TRTransitionView subviews become clipped and incorrectly offset within their
> parent container.
If you want the subviews to have a particular location and resizing behavior,
you have to set them yourself, either in Interface builder or programmatically
with the methods of NSView. What you describe sounds as though you haven't
correctly made those settings.
> Similarly, the contents of my subviews seem to 'flash' when resizing occurs
> (as if Core Animation is being used when the TRTransitionView (and subsequent
> subviews are resized).
That's not a similar problem at all, but I don't have the expertise in Core
Animation necessary to answer it. Fix your sizing problem first, so it doesn't
get in the way of the flashes.
By the way, it sounds as though both your subviews are visible at the same
time. I have the impression you don't want that. How do you plan on making one
or the other visible, and with what sort of visual effect?
— F
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]