mirror of
https://github.com/textmate/textmate.git
synced 2026-01-15 01:38:02 -05:00
Send method to class name instead of ‘self’
This avoids potential compiler errors where multiple methods with same signature but different parameter/result types.
This commit is contained in:
@@ -292,7 +292,7 @@ namespace
|
||||
static NSMutableDictionary* SharedInstances = [NSMutableDictionary new];
|
||||
if(![SharedInstances objectForKey:aName])
|
||||
{
|
||||
[SharedInstances setObject:[[[self alloc] initWithName:aName] autorelease] forKey:aName];
|
||||
[SharedInstances setObject:[[[OakPasteboard alloc] initWithName:aName] autorelease] forKey:aName];
|
||||
if(![aName isEqualToString:NSGeneralPboard])
|
||||
[[SharedInstances objectForKey:aName] setAvoidsDuplicates:YES];
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ static NSString* const FCExpandedStringKey = @"long";
|
||||
{
|
||||
static NSMutableDictionary* SharedInstances = [NSMutableDictionary new];
|
||||
if(!SharedInstances[aName])
|
||||
SharedInstances[aName] = [[self alloc] initWithName:aName];
|
||||
SharedInstances[aName] = [[OakAbbreviations alloc] initWithName:aName];
|
||||
return SharedInstances[aName];
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ OAK_DEBUG_VAR(FilterList_SymbolChooser);
|
||||
|
||||
+ (id)symbolChooserForDocument:(document::document_ptr)aDocument
|
||||
{
|
||||
return [[self alloc] initWithDocument:aDocument];
|
||||
return [[SymbolChooser alloc] initWithDocument:aDocument];
|
||||
}
|
||||
|
||||
- (NSString*)title
|
||||
|
||||
Submodule PlugIns/dialog-1.x updated: 25621eff52...8f4fd0ede1
Reference in New Issue
Block a user