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

Aesthetics of NSScrollView


  • Subject: Aesthetics of NSScrollView
  • From: Drew McCormack <email@hidden>
  • Date: Mon, 7 Oct 2002 21:00:28 +0200

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.
  • Follow-Ups:
    • Re: Aesthetics of NSScrollView
      • From: Ryan Dingman <email@hidden>
  • Prev by Date: How do i Distribute Objects to Two Cocoa Applications
  • Next by Date: NSFontTraitMask Question
  • Previous by thread: How do i Distribute Objects to Two Cocoa Applications
  • Next by thread: Re: Aesthetics of NSScrollView
  • Index(es):
    • Date
    • Thread