• 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: Aesthetics of NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aesthetics of NSScrollView


  • Subject: Re: Aesthetics of NSScrollView
  • From: Ryan Dingman <email@hidden>
  • Date: Mon, 7 Oct 2002 13:57:34 -0700

[scrollView setDrawsBackground:YES];
[scrollView setBackgroundColor:[NSColor whiteColor]];

Hope this helps.

ryan

On Monday, October 7, 2002, at 12:00 PM, Drew McCormack wrote:

I have a custom NSView that I have as the document view of an NSScrollView. If the custom view is larger than the scrollview window, everything works as I would like, but if my custom view is smaller than the window, I get the striped window background at the edges. What I would like is to have a white background, just like an NSTextView, and no striped background at all. What is the best way to achieve this? Do I have to resize my custom view so that it is always at least as big as the NSClipView, by listening for resize notifications for the clipview?

A related problem is that if I programmatically reduce the frame of my custom view and redraw it, the original view remains visible at the edges, ie, the background does not get redrawn so that the old view's drawing is erased. Any ideas?

Drew

... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
Dr. Drew McCormack
Trade Strategist (www.trade-strategist.com)
Trading simulation software for Mac OS X
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Aesthetics of NSScrollView (From: Drew McCormack <email@hidden>)

  • Prev by Date: RE: case-insensitive strings
  • Next by Date: Re: Using a framework like a bundle
  • Previous by thread: Aesthetics of NSScrollView
  • Next by thread: NSFontTraitMask Question
  • Index(es):
    • Date
    • Thread