• 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: NSWindow doesnt update it's background on view resize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSWindow doesnt update it's background on view resize (From: Robert Kuilman <email@hidden>)

  • Prev by Date: Re: Custom bindings in a control/cell pair
  • Next by Date: Re: NSArchiving and NSUnarchiving multiple objects
  • Previous by thread: NSWindow doesnt update it's background on view resize
  • Next by thread: Making NSView respond to command+key equivalent
  • Index(es):
    • Date
    • Thread