Re: NSWindow doesnt update it's background on view resize
Re: NSWindow doesnt update it's background on view resize
- Subject: Re: NSWindow doesnt update it's background on view resize
- From: Ricky Sharp <email@hidden>
- Date: Thu, 24 Feb 2005 09:16:54 -0600
On Thursday, February 24, 2005, at 09:00AM, Robert Kuilman <email@hidden> wrote:
>I have a NSWindow containing a NSScrollView, and a NSView.
>I'm giving the user the option to hide the NSView and resize the
>NSScrollView to resize over where the NSView used to be.
>When the NSView gets hidden, and the NSScrollView gets resized over it,
>it's okay. However, when the user wants to make the NSView visible
>again, and thus resizing the NSScrollView back to normal size, the
>space between the two views isnt redrawn. ( see
>http://www.skinner.ath.cx/temp/pics/drawingProblem.jpg the middle part
>is supposed to have a brushed metal background )
>
>I've tried calling setNeedsDisplay on the views, but only calling
>-display, or -setViewNeedsDisplay: will make it update. but that comes
>with flashing all the controls in the window, which is ugly and should
>not be necessary.
I wonder if the grief stems from overlapping views? Although it is convenient to use setHidden:, perhaps look into removing/adding the NSView instead of hiding/unhiding it.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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