stefanceriu / SCXcodeMiniMap

Sublime Text like Minimap for Xcode
GNU General Public License v3.0
1.03k stars 91 forks source link

Add MiniMap and source code view into a SplitView, remove size manage… #60

Closed MarioBajr closed 8 years ago

MarioBajr commented 9 years ago

…ment from Menu Bar

stefanceriu commented 9 years ago

Hi Mario,

This looks like a great idea but there are a couple of problems with the implementation:

Xcode[13270]: [MT] DVTAssertions: UNCAUGHT EXCEPTION (NSRangeException): *** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]

Xcode[13270]: [MT] DVTAssertions: 
Backtrace:
  0  0x00007fff97fea024 __exceptionPreprocess (in CoreFoundation)
  1  0x0000000106afcbb4 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
  2  0x00007fff91bad76e objc_exception_throw (in libobjc.A.dylib)
  3  0x00007fff97eb31e4 -[__NSArrayM objectAtIndex:] (in CoreFoundation)
  4  0x0000000111614a58 -[SCXcodeMinimapSplitView splitView:resizeSubviewsWithOldSize:] at /Users/stefanceriu/Desktop/@Github/SCXcodeMiniMap/SCXcodeMinimap/SCXcodeMinimapSplitView.m:109 (in SCXcodeMinimap)
  5  0x00007fff93582dec -[NSSplitView resizeSubviewsWithOldSize:] (in AppKit)
  6  0x00007fff937366c6 -[NSSplitView _adjustSubviewsIfNecessary] (in AppKit)
  7  0x00007fff935bb71f -[NSSplitView viewWillDraw] (in AppKit)
  8  0x00007fff9348d053 -[NSView viewWillDraw] (in AppKit)

I would suggest the following: