Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have two options:</p> <p>First, turn off "Copy on Scroll". You can do this directly in IB or by setting the <code>copiesOnScroll</code> option on the <code>contentView</code> member of the <code>NSScrollView</code>. That option, which is on by default makes it so the scroll view "copies its existing rendered image while scrolling (only drawing exposed portions of its document view)". If turned off, "it forces its contents to be redrawn each time." So, if performance is not a big issue, it works to just turn that off.</p> <p>However, making it so the content has to redraw every time can cause major performance issues if you are doing complex drawing within the scroll view.</p> <p>The second option is to leave "Copy on Scroll" turned on and then create a borderless window containing your overlaid view. This is really not as hackish as it might sound as you can actually add an <code>NSWindow</code> instance as a child of your current window so that it automatically moves along with the main window when that is moved.</p> <p>The <a href="http://developer.apple.com/library/mac/#samplecode/RoundTransparentWindow/Introduction/Intro.html" rel="noreferrer">RoundTransparentWindow</a> sample will give you a great example to follow in creating the window that will contain your overlay. Then, simply use NSWindow's <code>addChildWindow</code> to attach it to your main window.</p> <p>Note that with this approach you will need to handle the timing of the presentation and hiding of the overlay window. It also seems to be the case that when you maximize the parent window that the child window position does not automatically adjust. So, you'll have to handle that too. But, it's a great solution if you don't want to sacrifice what is sometimes a massive performance improvement when using "Copy on Scroll".</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload