• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why is scrollbar enabled?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why is scrollbar enabled?


  • Subject: Why is scrollbar enabled?
  • From: Eric Gorr <email@hidden>
  • Date: Mon, 28 Sep 2009 12:19:52 -0400

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@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


  • Prev by Date: Re: how do i make SecKeyRef object from NSData of publicKey value
  • Next by Date: Re: Looking for Sample code: WWDC2007 - Session 201 - Building Animated Cocoa User Interfaces
  • Previous by thread: NSBrowserDelegate gets passed nil matrix
  • Next by thread: Spotlight index all data
  • Index(es):
    • Date
    • Thread