• 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
Re: Scroller show/hide not triggered on doc resize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scroller show/hide not triggered on doc resize


  • Subject: Re: Scroller show/hide not triggered on doc resize
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 22 Oct 2007 12:50:53 -0700


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:
This email sent to email@hidden


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

  • Prev by Date: Re: D&D warning alert w/Finder folder drop
  • Next by Date: will/didChangeValueForKey: Real World Usage
  • Previous by thread: Scroller show/hide not triggered on doc resize
  • Next by thread: Possibly Dumb Question
  • Index(es):
    • Date
    • Thread