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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to