• 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
enlarging an NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

enlarging an NSScrollView


  • Subject: enlarging an NSScrollView
  • From: arekkusu <email@hidden>
  • Date: Fri, 20 Jun 2003 02:35:21 -0700

Hello,

Can somebody please explain why:

IBOutlet NSScrollView *scroll;
NSSize size = [scroll frame].size;
size.height -= 20;
[scroll setFrameSize: size];

will correctly redraw the vertical scrollbar at the smaller size, but:

IBOutlet NSScrollView *scroll;
NSSize size = [scroll frame].size;
size.height += 20;
[scroll setFrameSize: size];

will leave a big gaping hole at the bottom of the scrollbar? Why is the
NSScroller not send the same recalc/redraw message in both cases?


I am trying to un-collapse my NSScrollView in an NSSplitView, and
nothing I do fixes the initial scrollbar display. It fixes itself as
soon as I resize the window by one pixel.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: enlarging an NSScrollView
      • From: arekkusu <email@hidden>
    • Re: enlarging an NSScrollView
      • From: Matt Gemmell <email@hidden>
  • Prev by Date: NSDocument without Title
  • Next by Date: Advice sought for properties editor
  • Previous by thread: Re: NSDocument without Title
  • Next by thread: Re: enlarging an NSScrollView
  • Index(es):
    • Date
    • Thread