Note that there are some explanatory texts on larger screens.

plurals
  1. PONSTextView inside NSTabviewItem, loading text delay
    primarykey
    data
    text
    <p>I am using NSSplitview of which upper half is NSTableView and lower is NSTabview with 2 items. Each NStabViewItem has a NSTextview. All are defined in nib file.</p> <p>Now on selection of row of NSTableview, I load content of file and set it on NSTextview of NSTabViewItem. so NSTabview items I load depending on what rows of NSTableView is selected.</p> <p>However I observe appreciable delay of 5-6 seconds to see the text visible on NSTextview of NSTabViewItem of NSTabView.But if I hover the mouse in the NSTabView region the content of NSTextview of NSTabViewItem of NSTabview is shown immediately. Can anybody guide me what is the issue?</p> <p>I am only using NSTableView delegate, Not tabview delegate. I just load the content in respective NSTextView of each NSTabViewItem of tabview.</p> <p>Code Snippet:</p> <pre><code> - (void)tableViewSelectionDidChange:(NSNotification *)notification { if ([mTableView selectedRow] != -1) { selectedNode = [mLogContainer objectAtIndex:[mTableView selectedRow]]; [self manageTabView:[selectedNode logfile]]; } } -(void) manageTabView:(NSString*) fname { [self loadTextView:mDetailView withFilePath:fname]; NSString* summaryFile = [NSString stringWithFormat:@"%@.summary",fname]; [self loadTextView:mSummaryView withFilePath:summaryFile]; [mTabView selectTabViewItemAtIndex:0]; } -(void) setContent:(NSString*) content forView:(NSTextView*) textView { NSString* fileContent = [[NSString alloc] init]; [fileContent stringWithContentsOfFile:content encoding:NSUTF8StringEncoding error:nil]; NSTextStorage *textStorage = [textView textStorage]; [textStorage beginEditing]; [[textStorage mutableString] setString:fileContent]; [textStorage endEditing]; [textView setNeedsDisplay:YES]; } </code></pre>
    singulars
    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.
 

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