I use a NSTableView and a NSLevelIndicator in my user interface.
When either of them change value, I correctly send the "reloadData" or "setNeedsDisplay" command. With the NSLevelIndicator, this is after setting the value with setIntValue: and with the NSTableView I have already updated the data that gets used in the numberOfRowsInTableView: and tableview
bjectValueForTableColumn:row: methods. I know they work because they work just fine when the processing is done.
My problem is getting the GUI to respond to the updating commands sooner than it is. Is there a way to tell my method that is generating all the data to 'take a breather' and let the GUI do its update? I have searched through a lot of documentation, and I can't find anything that deals with this.
In short, the GUI actually updates only after the method ends its calculations (by which time it has gotten something on the order of 50 - 100 reloadData or setNeedsDisplay messages) rather then each time the "setNeedsDisplay" or "reloadData" method is called.
In debugging, the Controller is getting the "updateTheTable" method call from the model (the program stops at the break point set there), and is sending the "reloadData" message to the NSTableView in the Viewer, but nothing happens in the viewer until the main method stops and the viewer goes back to idly waiting for me to do something. I need to get the intermediate results displayed rather than the final results.
While this may be a bit vague, I am hoping someone recognizes my problem without me trying to post the entire program or me making a mock miniature program that accurately duplicates the problem.
Thanks in advance
When either of them change value, I correctly send the "reloadData" or "setNeedsDisplay" command. With the NSLevelIndicator, this is after setting the value with setIntValue: and with the NSTableView I have already updated the data that gets used in the numberOfRowsInTableView: and tableview
My problem is getting the GUI to respond to the updating commands sooner than it is. Is there a way to tell my method that is generating all the data to 'take a breather' and let the GUI do its update? I have searched through a lot of documentation, and I can't find anything that deals with this.
In short, the GUI actually updates only after the method ends its calculations (by which time it has gotten something on the order of 50 - 100 reloadData or setNeedsDisplay messages) rather then each time the "setNeedsDisplay" or "reloadData" method is called.
In debugging, the Controller is getting the "updateTheTable" method call from the model (the program stops at the break point set there), and is sending the "reloadData" message to the NSTableView in the Viewer, but nothing happens in the viewer until the main method stops and the viewer goes back to idly waiting for me to do something. I need to get the intermediate results displayed rather than the final results.
While this may be a bit vague, I am hoping someone recognizes my problem without me trying to post the entire program or me making a mock miniature program that accurately duplicates the problem.
Thanks in advance