Skip to content

Commit

Permalink
Fix the multi-tab issue and add a UUID for Xcode 6.2 beta. Fix issue #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Chen committed Dec 2, 2014
1 parent 7d4af79 commit 3dfb4f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
1 change: 1 addition & 0 deletions MCLog/MCLog-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<key>DVTPlugInCompatibilityUUIDs</key>
<array>
<string>C4A681B0-4A26-480E-93EC-1218098B9AA0</string>
<string>FEC992CC-CA4A-4CFD-8881-77300FCB848A</string>
<string>A2E4D43F-41F4-4FB9-BB94-7177011C9AED</string>
<string>37B30044-3B14-46BA-ABAA-F01000C27B63</string>
<string>AD68E85B-441B-4301-B564-A45E4919A6AD</string>
Expand Down
19 changes: 4 additions & 15 deletions MCLog/MCLog.m
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,6 @@ - (void)outputForStandardOutput:(id)arg1 isPrompt:(BOOL)arg2 isOutputRequestedBy
///////////////////////////////////////////////////////////////////////////////////////////

@interface MCLog ()<NSTextFieldDelegate>
{
NSMutableDictionary *workspace;
}
@end

@implementation MCLog
Expand Down Expand Up @@ -575,8 +572,7 @@ - (id)init
{
self = [super init];
if (self) {
workspace = [NSMutableDictionary dictionary];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(activate:) name:@"IDEIndexWillIndexWorkspaceNotification" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(activate:) name:@"IDEControlGroupDidChangeNotificationName" object:nil];
}
return self;
}
Expand Down Expand Up @@ -733,16 +729,9 @@ - (void)searchFieldDidEndEditing:(NSNotification *)notification
#pragma clang diagnostic pop
}

- (void)activate:(NSNotification *)notification {

id IDEIndex = [notification object];
BOOL isAdded = [[workspace objectForKey:hash(IDEIndex)] boolValue];
if (isAdded) {
return;
}
if ([self addCustomViews]) {
[workspace setObject:@(YES) forKey:hash(IDEIndex)];
}
- (void)activate:(NSNotification *)notification
{
[self addCustomViews];
}

@end
Expand Down

0 comments on commit 3dfb4f1

Please sign in to comment.