I'm sure there is something trivial that I am missing,

While the application is running and not doing anything in particular, I generate the following information about the state of the NSScroller:

Content View Frame: {{1, 1}, {445, 594}}
Content View Bounds: {{0, 0}, {445, 594}}
Scroll Frame Size: {{0, 0}, {458, 596}}
Document Frame: {{0, 0}, {445, 0}}
Document Bounds: {{0, 0}, {445, 0}}

with:

NSLog( @"Content View Frame: %@", NSStringFromRect( [[[self enclosingScrollView] contentView] frame] ) ); NSLog( @"Content View Bounds: %@", NSStringFromRect( [[[self enclosingScrollView] contentView] bounds] ) ); NSLog( @"Scroll Frame Size: %@", NSStringFromRect( [[self enclosingScrollView] frame] ) ); NSLog( @"Document Frame: %@", NSStringFromRect( [[[self enclosingScrollView] documentView] frame] ) ); NSLog( @"Document Bounds: %@", NSStringFromRect( [[[self enclosingScrollView] documentView] bounds] ) );

So, based on what I am seeing here, the document view has a zero height, so why would the vertical scroll bar be lit up?


Here are some images that might be helpful:

http://ericgorr.net/cocoadev/scrollbar/

DocumentView.png - some information on how I have the document view setup in IB NSScroller.png - some information on how I have the NSScroller setup in IB
scrollview.png - what it looks like when running in my application


Anyone have any thoughts?

_______________________________________________

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]

Reply via email to