mirror of
https://github.com/textmate/textmate.git
synced 2026-01-14 17:28:05 -05:00
Use non-deprecated version of weak NSMapTable (10.8)
This commit is contained in:
@@ -111,7 +111,7 @@ static NSArray* convert (std::map<std::string, scm::status::type> const& pathsMa
|
||||
_url = anURL;
|
||||
_options = someOptions;
|
||||
_scmInfo = scm::info([[anURL path] fileSystemRepresentation]);
|
||||
_items = [NSMapTable mapTableWithKeyOptions:NSPointerFunctionsStrongMemory valueOptions:NSPointerFunctionsZeroingWeakMemory];
|
||||
_items = [NSMapTable strongToWeakObjectsMapTable];
|
||||
|
||||
NSArray* query = [[anURL query] componentsSeparatedByString:@"="];
|
||||
self.rootItem = [self itemOfType:[query lastObject] ?: @"all"];
|
||||
|
||||
Reference in New Issue
Block a user