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/SPFavoritesImporter.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/SPFavoritesImporter.m')
-rw-r--r-- | Source/SPFavoritesImporter.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPFavoritesImporter.m b/Source/SPFavoritesImporter.m index 90c41927..3a0c2099 100644 --- a/Source/SPFavoritesImporter.m +++ b/Source/SPFavoritesImporter.m @@ -31,6 +31,7 @@ // More info at <http://code.google.com/p/sequel-pro/> #import "SPFavoritesImporter.h" +#import "SPThreadAdditions.h" @interface SPFavoritesImporter () @@ -54,8 +55,8 @@ - (void)importFavoritesFromFileAtPath:(NSString *)path { [self setImportPath:path]; - - [NSThread detachNewThreadSelector:@selector(_importFavoritesInBackground) toTarget:self withObject:nil]; + + [NSThread detachNewThreadWithName:@"SPFavoritesImporter background favorite importer" target:self selector:@selector(_importFavoritesInBackground) object:nil]; } #pragma mark - |