diff options
author | rowanbeentje <rowan@beent.je> | 2012-10-14 21:40:56 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-10-14 21:40:56 +0000 |
commit | 5aa4c866a68098c65cc8268621da0cbdc2725986 (patch) | |
tree | d0e45cfa7fd5632770bbf12b6935d9dba5ba8afe /Source/SPNavigatorController.m | |
parent | d8896ae0a22b0014d0b43706280c8a390f14b058 (diff) | |
download | sequelpro-5aa4c866a68098c65cc8268621da0cbdc2725986.tar.gz sequelpro-5aa4c866a68098c65cc8268621da0cbdc2725986.tar.bz2 sequelpro-5aa4c866a68098c65cc8268621da0cbdc2725986.zip |
- Add names for most threads created by Sequel Pro for easier debug
Diffstat (limited to 'Source/SPNavigatorController.m')
-rw-r--r-- | Source/SPNavigatorController.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPNavigatorController.m b/Source/SPNavigatorController.m index 2b9fe902..82bf42f8 100644 --- a/Source/SPNavigatorController.m +++ b/Source/SPNavigatorController.m @@ -43,6 +43,7 @@ #import "SPAppController.h" #import "SPDatabaseViewController.h" #import "SPDatabaseStructure.h" +#import "SPThreadAdditions.h" #import <objc/message.h> #import <SPMySQL/SPMySQL.h> @@ -611,8 +612,8 @@ static NSComparisonResult compareStrings(NSString *s1, NSString *s2, void* conte isFiltered = NO; if (![[doc getConnection] isConnected]) return; - [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:[doc databaseStructureRetrieval] withObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", nil]]; + [NSThread detachNewThreadWithName:@"SPNavigatorController database structure querier" target:[doc databaseStructureRetrieval] selector:@selector(queryDbStructureWithUserInfo:) object:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", nil]]; } - (IBAction)outlineViewAction:(id)sender @@ -710,8 +711,7 @@ static NSComparisonResult compareStrings(NSString *s1, NSString *s2, void* conte [schemaDataFiltered setDictionary:structure]; - [NSThread detachNewThreadSelector:@selector(reloadAfterFiltering) toTarget:self withObject:nil]; - + [NSThread detachNewThreadWithName:@"SPNavigatorController update after filtering" target:self selector:@selector(reloadAfterFiltering) object:nil]; } @catch(id ae) { |