I have a question based on my confusion over the interacting behaviors of an 
NSScrollView, its NSClipView and a custom NSView being displayed and clipped.

I have an NSScrollView which resizes as its window resizes. Therefore the 
NSClipView resizes within the NSScrollView as the the window resizes.

The custom NSView being displayed is small enough in size so that by enlarging 
the window far enough the NSClipView can become larger than the custom NSView. 
At this point the custom NSView becomes "locked" to the lower left corner of 
the NSScrollView and extra space is added to the top and right margins outside 
the bounds of the custom NSView.

I would like the custom NSView to "float" in the middle of the NSScrollView 
under these conditions. Other applications seem to implement this behavior. 
I've been experimenting with settings but haven't been able to figure out how 
to get what I want.

For the time being I have added the window delegate method 
windowWillResize:toSize: to force the window to stop growing at the point where 
the NSClipView reaches the same size as the custom NSView, so at least things 
look nice and neat, with the scroll bars going inactive at the exact point 
where the window stops growing, but I'd rather have the floating behavior.

Can anyone offer any advice?

Tom Wetmore, Massachusetts_______________________________________________

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