Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7805729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:18:30+00:00 2026-06-02T02:18:30+00:00

So this is my issue : I’ve got an an NSTextView with lots of

  • 0

So this is my issue :

I’ve got an an NSTextView with lots of content in it (white foreground on black background, if that matters), residing in a Sheet (triggered with beginSheet:modalForWindow:).

The thing is that, when the I’m scrolling, the contents seem to be hidden.

But, when I’m hovering the mouse over the scrollview/textview, the contents are there again.

So, what’s that? Why is that happening? How could I avoid this weird behavior?


Screencast : http://www.screencast.com/t/Sqrk2mdB

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T02:18:31+00:00Added an answer on June 2, 2026 at 2:18 am

    I watched your screencast of your problem, and it looks quite similar to an issue I faced not long ago. I had a method that initiated a sheet, something like this (assume the existence of certain values):

    - (IBAction)beginSheet:(id)sender
    {
        [[NSApplication sharedApplication] beginSheet:sheet 
                                       modalForWindow:[self mainWindow] 
                                        modalDelegate:self 
                                       didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) 
                                          contextInfo:self];
    }
    

    The sheet didn’t contain a text view like yours, but a table view instead. Sometimes the table view would perform perfectly, but other times, its enclosing scroll view would draw its scroll bars incompletely and there would be vast blank areas as an attempt was made to scroll.

    I managed to identify that the wonky behavior occurred only when -beginSheet: was called on a secondary thread.

    To remedy this, I took this approach instead:

    - (void)beginSheetOnMainThread:(id)sender
    {
        [[NSApplication sharedApplication] beginSheet:sheet 
                                       modalForWindow:[self mainWindow] 
                                        modalDelegate:self 
                                       didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) 
                                          contextInfo:self];
    }
    
    - (IBAction)beginSheet:(id)sender
    {
        [self performSelectorOnMainThread:@selector(beginSheetOnMainThread:) withObject:sender waitUntilDone:YES];
    }
    

    and the table views behaved consistently, and correctly.

    (I subsequently learned that using the dispatch_async() approach with the main queue and a block works quite well, too.)

    I apologize for the anecdotal evidence, knowing that this still may not solve your particular problem. But again, having seen your screencast, I found the symptoms quite familiar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been investigating this issue that only seems to get worse the more I
I have this issue with ComboBox that uses IEnumerable<Brush> as ItemsSource; the problem lies
This is an issue that recently came up for me while writing a new
This issue has been reported here and has been closed. I do see that
The issue is that sometimes I get this error in Google Chrome when I
I've got this issue: I've got a dataGrid where whenever I set the column
This issue is very likely codeigniter specific. I have a controller called redirect.php that
This issue may have be raised here before, but I am not confident that
This issue came up when I got different records counts for what I thought
This issue appears to affect all WebKit-based browsers, including the iPhone. First some background.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.