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

NSScrollView drawing errors


  • Subject: NSScrollView drawing errors
  • From: Michael Becker <email@hidden>
  • Date: Thu, 13 Oct 2005 13:56:57 +0200

Hello all,

strange things happen with an NSScrollView of mine. Here's the setup: I have a custom view that will programmatically add another subview to itself. This subview contains an NSTabView. One tab of the tabview contains an NSScrollView which again contains another custom view. I hope so far things are clear :) ... But I am experiencing weird things with that NSScrollView. Basically, when I scroll down, things seem to be alright, but when I scroll up again (no matter if I use the scroller or my mouse's scroll wheel), the drawing gets messed up.
The custom view inside of the NSScrollView doesn't do more than this (for debugging reasons):


- (BOOL)isFlipped {
    return YES;
}

- (BOOL)isOpaque {
    return YES;
}

- (void) drawRect:(NSRect)rect {
    [[NSColor greenColor] set];
    NSRectFill( rect );
}

The views size is set bigger than the scrollview, so scrolling will be available. What happens is, that when scrolling up, horizontal gray lines get drawn inside the scrollview. When I draw anything else (e.g. images) into the custom view, the drawing gets messed up. To make up for the bad description, here are two screenshots:

Plain green: http://www.liberomusik.de/michael/scrollview1.png
With images: http://www.liberomusik.de/michael/scrollview2.png


What may have caused this?

Regards,
Michael


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSScrollView drawing errors (Cocoa Bug?)
      • From: Michael Becker <email@hidden>
  • Prev by Date: cocoabuilder password?
  • Next by Date: [ANN] Cocoabuilder archive status update
  • Previous by thread: Re: cocoabuilder password?
  • Next by thread: Re: NSScrollView drawing errors (Cocoa Bug?)
  • Index(es):
    • Date
    • Thread