improved sync's

This commit is contained in:
Patrick Wardle
2018-12-14 15:43:06 -10:00
parent da93203af4
commit 35baa20f7c
4 changed files with 16 additions and 6 deletions
+13 -3
View File
@@ -580,12 +580,16 @@ bail:
//bottom table view
tableView = [((id)self.bottomViewController) itemView];
//sync bottom view controller
@synchronized(self.bottomViewController)
{
//no filtering
// ->grab row from all items
if(YES != self.bottomViewController.isFiltered)
{
//get row
@synchronized(self.bottomViewController)
@synchronized(self.bottomViewController.tableItems)
{
//get
row = [self.bottomViewController.tableItems indexOfObject:item];
@@ -596,8 +600,14 @@ bail:
else
{
//get row
row = [self.bottomViewController.filteredItems indexOfObject:item];
@synchronized(self.bottomViewController.filteredItems)
{
//get row
row = [self.bottomViewController.filteredItems indexOfObject:item];
}
}
}//sync
//make sure item was found
if(NSNotFound == row)
@@ -739,7 +749,7 @@ bail:
{
//reload
// ->in main UI thread
dispatch_sync(dispatch_get_main_queue(), ^{
dispatch_async(dispatch_get_main_queue(), ^{
//set not found label
self.noItemsLabel.stringValue = noItemsMsg;
+2 -2
View File
@@ -390,11 +390,11 @@ bail:
}] mutableCopy];
}//sync
//reload bottom pane now
// note: this will only reload if new task is the currently selected one, etc
[((AppDelegate*)[[NSApplication sharedApplication] delegate]) reloadBottomPane:self itemView:DYLIBS_VIEW];
}//sync
//complete dylib processing for new dylib
// ->get signing info, hash, etc, & save into global list
@@ -30,7 +30,7 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
debugAsWhichUser = "root"
launchStyle = "1"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"