Subviews use superview's `drawRect' method?
Subviews use superview's `drawRect' method?
- Subject: Subviews use superview's `drawRect' method?
- From: Damien Sorresso <email@hidden>
- Date: Tue, 16 Aug 2005 09:49:48 -0500
I'm getting some weirdness with NSViews and subviews. Here's a
screenshot of what I'm talking about.
http://www.ilstu.edu/~dsorres/nsview_weirdness.png
Check out the box around the button that says `Finish'. That border
draws when I press the button, and it refuses to go away. The
button's superview, is the box with the 1.5 pixel-thick border, which
I draw with an `NSBezierPath' in the `drawRect' method. I've run into
this type of thing before, and putting a `[view setNeedsDisplay:YES]'
in the right place does the trick. But in this case, it's not working.
Why are the subviews apparently using the superview's `drawRect'
method when they're dirty?
--
Damien Sorresso
Macintosh Developer
Computer Infrastructure Support Services
Illinois State University
email@hidden
309.438.5777
_______________________________________________
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