Skip to content

Commit 662a5d0

Browse files
committed
Merge pull request #16 from fleshgolem/Xcode5.0
Fixed bug, that would cause Xcode 5 to crash, when connecting from Inter...
2 parents 9b57fd5 + 16f9ff0 commit 662a5d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SCXcodeMinimap/SCXcodeMinimap.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,14 @@ - (void)showMiniMap:(NSMenuItem *)sender
9494

9595
- (void)onDocumentDidChange:(NSNotification*)sender
9696
{
97+
if ([[[sender object] class] isSubclassOfClass:[NSDocument class]])
98+
{
9799
SCMiniMapView *miniMapView = objc_getAssociatedObject([sender object], &kKeyMiniMapView);
98100
[miniMapView updateTextView];
99101
}
100102

103+
}
104+
101105
- (void)onCodeEditorBoundsChange:(NSNotification*)sender
102106
{
103107
if(![sender.object respondsToSelector:@selector(scrollView)]) {

0 commit comments

Comments
 (0)