diff --git a/AppDelegate.m b/AppDelegate.m index 5bc16f1..d827e4d 100755 --- a/AppDelegate.m +++ b/AppDelegate.m @@ -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; diff --git a/Task.m b/Task.m index 4540617..22617e0 100644 --- a/Task.m +++ b/Task.m @@ -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 diff --git a/TaskExplorer.xcodeproj/project.xcworkspace/xcuserdata/patrick.xcuserdatad/UserInterfaceState.xcuserstate b/TaskExplorer.xcodeproj/project.xcworkspace/xcuserdata/patrick.xcuserdatad/UserInterfaceState.xcuserstate index 7f13ea2..ae26656 100644 Binary files a/TaskExplorer.xcodeproj/project.xcworkspace/xcuserdata/patrick.xcuserdatad/UserInterfaceState.xcuserstate and b/TaskExplorer.xcodeproj/project.xcworkspace/xcuserdata/patrick.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/TaskExplorer.xcodeproj/xcuserdata/patrick.xcuserdatad/xcschemes/TaskExplorer.xcscheme b/TaskExplorer.xcodeproj/xcuserdata/patrick.xcuserdatad/xcschemes/TaskExplorer.xcscheme index c177434..8389691 100644 --- a/TaskExplorer.xcodeproj/xcuserdata/patrick.xcuserdatad/xcschemes/TaskExplorer.xcscheme +++ b/TaskExplorer.xcodeproj/xcuserdata/patrick.xcuserdatad/xcschemes/TaskExplorer.xcscheme @@ -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"