Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scroller show/hide not triggered on doc resize




On 2007 Oct, 21, at 12:24, Ken Tozier wrote:

I have an NSScrollView containing a programatically sized custom NSView as its document view and can't get the scrollbars to show when the doc view becomes deeper than the NSScrollView's frame.

Ken, there are two ways to do this. Which are you having trouble with?

(a) relying on -setAutohidesScrollers:YES
(b) using -setHasVerticalScroller:YES/NO "manually" based on your document view size?


I've often had trouble with (a), and my solution is to use (b). I think it looks better when the scroller is gone too, since the scroller completely disappears instead of leaving the dirty gray ghost as in (a).

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Scroller show/hide not triggered on doc resize (From: Ken Tozier <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.