Re: Help visualizing something in IB
Re: Help visualizing something in IB
- Subject: Re: Help visualizing something in IB
- From: Brian Postow <email@hidden>
- Date: Thu, 11 Mar 2010 13:58:35 -0500
On Mar 11, 2010, at 1:04 PM, Quincey Morris wrote:
> On Mar 10, 2010, at 8:04 PM, Quincey Morris wrote:
>
>> If you must follow this approach, then I'd suggest you register to get frame-changed notifications from topView. That way, you'll know if it moved within the window, or if it was resized as a result of the window/enclosing view resizing. Also, turn off auto-resizing for subviews of topView.
>
> For completeness:
>
> I didn't think this through properly. Your topView is inside a view that's what is actually scrolled (the scroll view's "documentView"), so the topView frame won't change as a result of scrolling. I think what you'd need would be to observe the scroll view's clipView's bounds, which should change on either scrolling or resizing. If you ever get to doing this, you'll have to experiment to find the right thing to observe, and it's possible you might have to observe multiple views to catch all the cases.
>
I should be able to just use the clipRect of the superview, right?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
_______________________________________________
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