Robert Sesek [Wed, 9 Jul 2008 17:05:14 +0000 (13:05 -0400)]
Adding an empty preferences window and controller. Hooking up the Preferences menu item.
* English.lproj/MainMenu.xib: Hooking up the Preferences menu item
* English.lproj/Preferences.xib: New file
* Source/PreferencesController.m+h: New files
* Source/AppDelegate.m+h: Adding an ivar for the PreferencesController
(showPreferences:): New method
* MacGDBp.xcodeproj: Project updates for new files
Robert Sesek [Mon, 23 Jun 2008 13:45:46 +0000 (09:45 -0400)]
Merge branch 'bug-125'
Conflicts:
Source/BSSourceView.m
Robert Sesek [Mon, 23 Jun 2008 13:28:49 +0000 (09:28 -0400)]
Instead of using the "stopping" status, just use "Stopped" for both itself and "stopping"
* Source/DebuggerConnection.m:
(refreshStatus)
Robert Sesek [Sun, 22 Jun 2008 16:25:05 +0000 (12:25 -0400)]
Close the connection when we receive the "stopping" status. Fixes bug://report/125
* Source/DebuggerConnection.m:
(refreshStatus): The "stopped" and "stopping" statuses should have the same effect now
Robert Sesek [Sun, 22 Jun 2008 16:10:47 +0000 (12:10 -0400)]
Make the markers prop in BSLineNumberView be retain instead of assign
* Source/BSLineNumberView.h
Robert Sesek [Sun, 22 Jun 2008 16:08:19 +0000 (12:08 -0400)]
Balancing with a [release] call
* Source/BSLineNumberView.m:
(drawRect:)
Robert Sesek [Sun, 22 Jun 2008 14:21:24 +0000 (10:21 -0400)]
Merge git://github.com/ciaran/macgdbp
Robert Sesek [Sun, 22 Jun 2008 13:58:34 +0000 (09:58 -0400)]
We need to balanace with a [release] call
* Source/BreakpointWindowController.m:
(gutterClickedAtLine:forFile:)
CiarĂ¡n Walsh [Sun, 22 Jun 2008 00:48:17 +0000 (01:48 +0100)]
Syntax highlight source files using the PHP executable
Robert Sesek [Wed, 18 Jun 2008 18:13:07 +0000 (14:13 -0400)]
Tell the breakpoints window to open at launch, though in back of the debugger
* Source/BreakpointWindowController.m:
(init): [orderBack:] the window
Robert Sesek [Wed, 18 Jun 2008 18:09:38 +0000 (14:09 -0400)]
Added a [release] call
* Source/AppDelegate.m:
(versionCheck:): Need to release the NSXMLDocument because we alloc'd it
Robert Sesek [Wed, 18 Jun 2008 14:18:13 +0000 (10:18 -0400)]
Version 1.0.1
* Info.plist
Robert Sesek [Wed, 18 Jun 2008 14:13:23 +0000 (10:13 -0400)]
Return the NSXMLDocument in [DebuggerConnection processData:] as autorelease
* Source/DebuggerConnection.m:
(processData:): [autorelease] the retval
Robert Sesek [Wed, 18 Jun 2008 13:47:43 +0000 (09:47 -0400)]
Instead of leaking an alloc'd NSString, use an autorelease'd initializer
* Source/SocketWrapper.m:
(receive:): When building up the full NSString, use the non-alloc-izing initializer
Robert Sesek [Wed, 18 Jun 2008 13:40:31 +0000 (09:40 -0400)]
The hostname was using an autorelease'd initializer, so switch to an alloc'd one
* Source/SocketWrapper.m:
(connect:): Use [NSString initWithUTF8String:] instead of [NSString stringWithUTF8String:]
(dealloc): Add the corresponding release call
Robert Sesek [Wed, 18 Jun 2008 13:26:40 +0000 (09:26 -0400)]
Fix a few exceptions/warnings related to going no-gc
* Source/AppDelegate.m
(versionCheck:): Add an NSAutoreleasePool
* Source/BreakpointManager.h: Specify an assignment type for the connection ivar
* Source/SocketWrapper.m:
(connect:): Add an NSAutoreleasePool
Robert Sesek [Wed, 18 Jun 2008 13:17:01 +0000 (09:17 -0400)]
Merge branch 'master' into no-gc
Robert Sesek [Tue, 17 Jun 2008 13:27:21 +0000 (09:27 -0400)]
Center the version check window (when it pops up) and the main window
* Source/AppDelegate.m:
(versionCheck:)
* Source/DebuggerWindowController.m:
(awakeFromNib)
Robert Sesek [Tue, 17 Jun 2008 13:21:40 +0000 (09:21 -0400)]
Have the help menu go to our website instead of saying no help avaliable
* Source/AppDelegate.m+h:
(openHelpPage:): New method
* English.lproj/MainMenu.xib: Change the IBA for the help action
Robert Sesek [Mon, 16 Jun 2008 23:51:40 +0000 (19:51 -0400)]
Adding a *real* version checking system
* English.lproj/MainMenu.xib: Adding the version update window
* Source/AppDelegate.h: Adding IBOs for the updater window and the update information string
* Source/AppDelegate.m:
(init): Run the version check method
(versionCheck:): New method
(openUpdateInformation:): New method
Robert Sesek [Thu, 12 Jun 2008 16:24:07 +0000 (12:24 -0400)]
This is going to be v1.0
* Info.plist
Robert Sesek [Thu, 12 Jun 2008 16:20:08 +0000 (12:20 -0400)]
After we establish a connection, we need to resend any offline breakpoints
* Source/DebuggerConnection.m:
(socketDidAccept:)
Robert Sesek [Thu, 12 Jun 2008 16:19:30 +0000 (12:19 -0400)]
Protect against array out of bounds exceptions when removing breakpoints
* Source/BreakpointWindowController.m:
(removeBreakpoint:): If there are no selected objects in the NS-AC, don't try to remove breakpoints
Robert Sesek [Thu, 12 Jun 2008 15:36:45 +0000 (11:36 -0400)]
Change the font size of the breakpoint NS-TV to be size 11
* English.lproj/Breakpoints.xib
Robert Sesek [Thu, 12 Jun 2008 15:31:53 +0000 (11:31 -0400)]
The breakpoint manager now works -- breakpoints can be set from the main debugger or the manager
* English.lproj/Breakpoints.xib: Set the NSTableView's delegate to be File's Owner and disconnect the content IBO to the NS-AC
* Source/BreakpointManager.m:
(updateDisplaysForfile:): New private method
(addBreakpoint:): Call [updateDisplaysForfile:]
(removeBreakpointAt:inFile:): ditto
* BreakpointWindowController.m+h: Add props and synth them for sourceView and arrayController ivars
(removeBreakpoint:): Fill out method stub
(tableViewSelectionDidChange:): Implement delegate method
* DebuggerWindowController.m+h: Add prop/synth for sourceViewer ivar
Robert Sesek [Thu, 12 Jun 2008 13:51:57 +0000 (09:51 -0400)]
Fixing a bug where if the register depth was too deep, more properties would not be fetched/inserted correctly
* Source/AppDelegate.m+h: Add and synthesize props for debugger and breakpoint ivars
* Source/DebuggerConnection.m+h:
(getProperty:forNode:): Renamed [getProperty:] and now return an NSArray rather than attaching to a node
* Source/DebuggerWindowController.m+h:
(addChildren:toNode:): Removed
(outlineViewItemDidExpand:): Don't have to do extra fetch work here because it will now be done in the model
* Source/NSXMLElementAdditions.m+h:
(subnodes): New method that does the same thing as [children] but intelligently fetches more depth
* English.lproj/Debugger.xib: Tell the regiser NSTreeController to use [subnodes] instead of [children]
Robert Sesek [Wed, 11 Jun 2008 20:56:29 +0000 (16:56 -0400)]
Another instance where [BSLineNumberView setMarkers:] takes a set and not an NSArray
* Source/BreakpointWindowController.m:
(gutterClickedAtLine:forFile:)
Robert Sesek [Wed, 11 Jun 2008 19:33:40 +0000 (15:33 -0400)]
Trying to use mutableChildNodes and appending mock-NSTreeNode objects
Robert Sesek [Wed, 11 Jun 2008 17:57:22 +0000 (13:57 -0400)]
Index path by appending IP with a counter
Robert Sesek [Wed, 11 Jun 2008 17:55:44 +0000 (13:55 -0400)]
Index path by appending 0 to the IP
Robert Sesek [Wed, 11 Jun 2008 14:30:04 +0000 (10:30 -0400)]
[BSLineNumberView setMarkers:] takes an NSSet and not an NSArray
* Source/DebuggerWindowController.m:
(gutterClickedAtLine:forFile:): Create an NSSet from the NSArray
Robert Sesek [Wed, 11 Jun 2008 14:26:54 +0000 (10:26 -0400)]
Set the "Automatically Rearranges Content" and "Prepares Content" flags on the Breakpoints.xib NSArrayController
* English.lproj/Breakpoints.xib
Robert Sesek [Wed, 11 Jun 2008 14:11:17 +0000 (10:11 -0400)]
In DebuggerConnection, we need to protect against setting breakpoints with no active connection
* Source/DebuggerConnection.m:
(addBreakpoint:)
(removeBreakpoint:)
Robert Sesek [Wed, 11 Jun 2008 13:51:36 +0000 (09:51 -0400)]
Set the BSSourceView's delegate in Breakpoints.xib
* English.lproj/Breakpoints.xib
Robert Sesek [Wed, 11 Jun 2008 13:46:12 +0000 (09:46 -0400)]
Have the BreakpointManager tell the DebuggerConnection about breakpoints, rather than controllers
* Source/BreakpointManager.m:
(addBreakpoint:)
(removeBreakpointAt:inFile:)
* Source/DebuggerWindowController.m:
(gutterClickedAtLine:forFile:)
Robert Sesek [Tue, 10 Jun 2008 18:33:58 +0000 (14:33 -0400)]
Auto-hide the scrollbars in BSSourceView
* Source/BSSourceView.m:
(setupViews)
Robert Sesek [Tue, 10 Jun 2008 18:26:24 +0000 (14:26 -0400)]
Automatically hide scrollbars on the NSTableView of breakpoints
* English.lproj/Breakpoints.xib
Robert Sesek [Tue, 10 Jun 2008 18:21:05 +0000 (14:21 -0400)]
Set the BreakpointManager's connection to the DebuggerConnection instance
* Source/DebuggerConnection.m:
(initWithWindowController:port:session): Set the connection to be self
Robert Sesek [Tue, 10 Jun 2008 18:04:59 +0000 (14:04 -0400)]
Add a prop for DebuggerConnection and change the breakpoints ivar to a prop
* Source/BreakpointManager.m+h
Robert Sesek [Tue, 10 Jun 2008 17:59:53 +0000 (13:59 -0400)]
Hooking up the BSSourceView outlet and implement delegates
* English.lproj/Breakpoints.xib: Hook up outlet
* Source/BreakpointWindowController.h: Add the ivar
* Source/BreakpointWindowController.m:
(addBreakpoint:): Show the NSOpenPanel to select a file
(gutterClickedAtLine:forFile:): New method
Robert Sesek [Tue, 10 Jun 2008 16:35:14 +0000 (12:35 -0400)]
Hooking up a NSArrayController to manage the breakpoints
* English.lproj/Breakpoints.xib
* Source/BreakpointWindowController.h: Add an ivar for the NSAC
Robert Sesek [Tue, 10 Jun 2008 16:11:21 +0000 (12:11 -0400)]
Adding IBAs to Breakpoints.xib and the BWC
* English.lproj/Breakpoints.xib: Adding actions for the +/- buttons
* Source/BreakpointWindowController.m+h: Adding the code complements for the IBAs
Robert Sesek [Tue, 10 Jun 2008 15:58:11 +0000 (11:58 -0400)]
Rewrite BreakpointManager to use NSArray instead a faux hashtable using a NSDictionary
* Source/Breakpoint.m+h
Robert Sesek [Tue, 10 Jun 2008 15:30:11 +0000 (11:30 -0400)]
Add an ivar for the BreakpointManager in the BreakpointWindowController
* Source/BreakpointWindowController.h: Add the ivar manager
* Source/BreakpointWindowController.m:
(init:): Set the ivar to the sharedManager
Robert Sesek [Mon, 9 Jun 2008 20:40:30 +0000 (16:40 -0400)]
Fixing some UI quirks in the breakpoints window
* English.lproj/Breakpoints.xib
Robert Sesek [Mon, 9 Jun 2008 20:35:40 +0000 (16:35 -0400)]
Finishing hooking up the XIB
* English.lproj/Breakpoints.xib: Set File's Owner to be BreakpointWindowController and set the window IBO
* Source/BreakpointWindowController.m:
(init): Adding a comment
Robert Sesek [Mon, 9 Jun 2008 20:06:09 +0000 (16:06 -0400)]
Fixed a warning in Source/BSSourceView.m:48 -- method possibly missing a [super dealloc] call
Robert Sesek [Mon, 9 Jun 2008 20:05:06 +0000 (16:05 -0400)]
Disabling GC
* MacGDBp.xcodeproj
Robert Sesek [Mon, 9 Jun 2008 20:04:06 +0000 (16:04 -0400)]
Merge branch 'master' into no-gc
Conflicts:
Source/Breakpoint.m
Source/ConnectWindowController.m
Robert Sesek [Mon, 9 Jun 2008 19:55:03 +0000 (15:55 -0400)]
We need an instance of BreakpointWindowController in AppDelegate
* Source/AppDelegate.m:
(applicationDidFinishLaunching:): Init BreakpointWindowController to breakpoints
* Source/BreakpointWindowController.m:
(init): Add an init method
Robert Sesek [Mon, 9 Jun 2008 19:51:01 +0000 (15:51 -0400)]
Adding a breakpoints NSWindowController for Breakpoints.xib
* Source/BreakpointWindowController.m+h: New files
* MacGDBp.xcodeproj: Project updates for BreakpointWindowController
* Source/AppDelegate.m+h:
(showBreakpointWindow:): New method
* English.lproj/MainMenu.xib: Add a
Robert Sesek [Mon, 9 Jun 2008 19:43:39 +0000 (15:43 -0400)]
Adding Breakpoints.xib for the breakpoints manager
* English.lproj/Breakpoints.xib: New file
* MacGDBp.xcodeproj: Project updates for the new XIB
Robert Sesek [Fri, 6 Jun 2008 18:22:34 +0000 (14:22 -0400)]
We aren't going to store breakpoints in NSUserDefaults
* Source/BreakpointManager.m:
(init): Removed the NSUserDefaults loading
(addBreakpoint:): Don't add it to NSUserDefaults
(removeBreakpoint:): ditto
Robert Sesek [Fri, 6 Jun 2008 18:08:02 +0000 (14:08 -0400)]
Adding NSDictionary archiving and unarchiving abilities to Breakpoint
* Source/Breakpoint.m+h:
(initWithDictionary:): New method
(dictionary): New method
Robert Sesek [Fri, 6 Jun 2008 17:58:17 +0000 (13:58 -0400)]
Reorganizing the project source files into groups
* MacGDBp.xcodeproj
Robert Sesek [Thu, 5 Jun 2008 01:39:16 +0000 (21:39 -0400)]
When calling -[SocketWrapper remoteHost], we don't want to continually query the hostname
* Source/SocketWrapper.h: Adding a hostname ivar
* Source/SocketWrapper.m:
(remoteHost): Just return the hostname ivar
(connect:): Query the hostname and store it in the hostname ivar
Robert Sesek [Thu, 5 Jun 2008 01:29:54 +0000 (21:29 -0400)]
Sending the "run" command was balanced with a receive command
* Source/DebuggerConnection.m:
(run): Message the socket to -[receive]
Robert Sesek [Thu, 5 Jun 2008 01:28:10 +0000 (21:28 -0400)]
Comment out the saving of breakpoints to NSUserDefaults because it's generating a lot of noise
* Source/BreakpointManager:
(addBreakpoint:)
(removeBreakpointAt:inFile:)
Robert Sesek [Wed, 4 Jun 2008 20:15:51 +0000 (16:15 -0400)]
Make the stack text be the same size as the register text
* English.lproj/Debugger.xib
Robert Sesek [Wed, 4 Jun 2008 19:27:42 +0000 (15:27 -0400)]
We don't want the NULL byte at the end of the NSString when we call -receive:
* Source/SocketWrapper.m:
([receive]): Substring to the last byte
Robert Sesek [Wed, 4 Jun 2008 19:18:52 +0000 (15:18 -0400)]
Instead of using NSData for [SocketWrapper receive], use NSString
* Source/DebuggerConnection.m:
([processData:]): Use NSString instead of NSData
* Source/SocketWrapper.m+h:
([receive]): Return an NSString
Robert Sesek [Wed, 4 Jun 2008 16:17:32 +0000 (12:17 -0400)]
Putting GC back on because we really need it
Robert Sesek [Wed, 4 Jun 2008 15:16:22 +0000 (11:16 -0400)]
Forgot to turn off GC in debug mode
* MacGDBp.xcodeproj
Robert Sesek [Wed, 28 May 2008 20:27:14 +0000 (16:27 -0400)]
Add better error checking for malformed XML
* Source/DebuggerConnection.m:
(-[processData:]): If there's an XML error, print a LOT of info about it
Robert Sesek [Wed, 28 May 2008 18:29:14 +0000 (14:29 -0400)]
Trying to add some bounds checking so we don't get unhandled exceptions
* Source/DebuggerConnection.m:
(-[processData:]): Try to catch malformed data
* Source/DebuggerWindowController.m:
(-[updateSourceViewer]): Don't proceed if there is no stack
Robert Sesek [Wed, 28 May 2008 16:19:42 +0000 (12:19 -0400)]
Don't try to load empty files (like when we're in eval())
* Source/DebuggerWindowController.m:
(-[updateSourceViewer]): If the filename is empty, abort the data refresh
Robert Sesek [Wed, 23 Apr 2008 19:47:16 +0000 (15:47 -0400)]
Making a reference to the debugger in the Window menu
* English.lproj/MainMenu.xib: Add a Window->Debugger item
* Source/AppDelegate.m/h: Add a debugger ivar to hold the DebuggerWindowController
([showDebuggerWindow:]): New method to bring the debugger window to the front
* Source/DebuggerWindowContrller.m:
([awakeFromNib]): Exclude the window from the dynamic Window menu
Robert Sesek [Wed, 23 Apr 2008 19:12:05 +0000 (15:12 -0400)]
Removing the connect dialog
* English.lproj/Connect.xib: Removed
* English.lproj/MainMenu.xib: Removing the "Connection" menu and adding a "File" menu
* Source/AppDelegate.m/h:
([showConnectWindow:]): Removed
* Source/ConnectWindowController.m/h: Removed
* MacGDBp.xcodeproj: Project updates for removed files
Robert Sesek [Thu, 17 Apr 2008 17:40:17 +0000 (13:40 -0400)]
Turning off GC and adding back manual memory management
Robert Sesek [Thu, 17 Apr 2008 16:48:11 +0000 (12:48 -0400)]
Add an initial breakpoints manager window and save the breakpoints to NSUserDefaults
Robert Sesek [Wed, 2 Apr 2008 21:50:41 +0000 (17:50 -0400)]
Merge branch 'breakpoints'
Robert Sesek [Wed, 2 Apr 2008 21:34:22 +0000 (17:34 -0400)]
When clicking a breakpoint that exists, tell the connection to remove it
* Source/DebuggerWindowController.m:
([DebuggerWindowController gutterClickedAtLineForFile:])
Robert Sesek [Wed, 2 Apr 2008 21:32:47 +0000 (17:32 -0400)]
Return the breakpoint when removing in BreakpointManager
* Source/BreakpointManager.m/h:
([BreakpointManager removeBreakpointAt:inFile:]): Return the breakpoint that was removed
Robert Sesek [Wed, 2 Apr 2008 21:26:36 +0000 (17:26 -0400)]
Adding support to actually set breakpoints on the debuger side
* Source/Breakpoint.h: New debuggerId ivar to keep track of the engine's tracking ID
* Source/Breakpoint.m: Synthesize ivar
* Source/DebuggerConnection.m/h:
([DebuggerConnection addBreakpoint:]): New method
([DebuggerConnection removeBreakpoint:]): New method
* Source/DebuggerWindowController.m:
([DebuggerWindowController gutterClickedAtLine:forFile:]): When adding a breakpoint, tell the engine to set it
Robert Sesek [Wed, 2 Apr 2008 20:29:22 +0000 (16:29 -0400)]
Add support for removing a breakpoint
* Source/BSLineNumberView.m:
([BSLineNumberView drawRect:]): Remove an NSLog()
* Source/BreakpointManager.m:
([BreakpointManager removeBreakpointAt:inFile:]): New method
* Source/DebuggerWindowController.m:
([DebuggerWindowController gutterClickedAtLine:forFile:]): Add support for removing breakpoints
Robert Sesek [Wed, 2 Apr 2008 20:20:43 +0000 (16:20 -0400)]
Change the drawing of the marker to make it prettier
* Source/BSLineNumberView.m:
([BSLineNUmberView(Private) drawMarkerInRect:]): Make the mark darker and stroked
Robert Sesek [Wed, 2 Apr 2008 20:11:30 +0000 (16:11 -0400)]
Add the functionality to draw markers
* Source/BSLineNumberView.m:
([BSLineNumberView(Private) drawMarkerInRect:]): New method
Robert Sesek [Wed, 2 Apr 2008 18:55:06 +0000 (14:55 -0400)]
Adding a new class called BreakpointManager so we don't clutter up AppDelegate
* Source/AppDelegate.m/h: Removing the breakpoint code
* Source/BSLineNumberView.m:
([BSLineNumberView mouseDown:]): We need to add the lineNumberRange so we get an accurate number
* Source/DebuggerWindowController.m: Switching to BreakpointManager instead of AppDelegate for managing breakpoints
* Source/BreakpointManager.m/h: New files
* MacGDBp.xcodeproj: Project updates for BreakpointManager
Robert Sesek [Wed, 2 Apr 2008 17:53:46 +0000 (13:53 -0400)]
Initial breakpoint adding code
* MacGDBp.xcodeproj: Project updates for Breakpoint.m/h
* Source/AppDelegate.h: Add a breakpoints ivar
* Source/AppDelegate.m:
([AppDelegate addBreakpoint:]): New method
([AppDelegate breakpointsForFile:]): New method
* Source/BSLineNumberView.h: Add a markers ivar
* Source/BSLineNumberView.m:
([BSLineNumberView drawRect:]): Add breakpoint-detecting code
* Source/DebuggerWindowController.m: Making this the delegate of BSSourceView
([DebuggerWindowController gutterClickedAtLine:forFile:]): Implementing delegate method
Robert Sesek [Tue, 1 Apr 2008 04:33:22 +0000 (00:33 -0400)]
We now properly handle the mouseDown event in the gutter
* Source/BSLineNumberView.h: New property called lineNumberRange
* Source/BSLineNumberView.m: Synthesize lineNumberRange and set it to be empty in -[init]
([BSLineNumberView drawRect:]): Set lineNumberRange to be the range of visible lines in the source viewer
([BSLineNumberView mouseDown:]): Use the line number range to simplify the code of determining which line was clicked
* Source/BSSourceView.h: New property file to hold the filename; also create delegate category
* Source/BSSourceView.h: Synthesize file
([BSSourceView setFile:]): Sets the file property as well as setting the string of the textView object
* Source/DebuggerWindowController.m:
([DebuggerWindowController updateSourceViewer]): Use the new -[setFile:] method
Robert Sesek [Sat, 29 Mar 2008 03:02:36 +0000 (23:02 -0400)]
Add an application icon
* Icons/MacGDBp.icns: New icon file
* Info.plist: Add a reference to the icon file
* MacGDBp.xcodeproj: Project updates for the icon file
* Resource Masters/App Icon.psd: New file
* Resource Masters/Globe.ai: New file
* Resource Masters/Toolbar Buttons.psd: Moved from root folder
Robert Sesek [Thu, 13 Mar 2008 05:09:09 +0000 (01:09 -0400)]
Merge branch 'master' into breakpoints
Robert Sesek [Thu, 13 Mar 2008 05:07:48 +0000 (01:07 -0400)]
Allow the type to also display the class of object
* Source/NSXMLElementAdditions.m:
([NSXMLElement(NSXMLElementAdditions) type]): If the classname attribute is present, use it
Robert Sesek [Mon, 10 Mar 2008 20:39:38 +0000 (16:39 -0400)]
The mouse down handler almost works, but our math is still off
* Source/BSLineNumberView.m:
([BSLineNumberView mouseDown:])
Robert Sesek [Mon, 10 Mar 2008 19:13:09 +0000 (15:13 -0400)]
Making progress on our -[mouseDown:] event handler, but it's not quite working
* Source/BSLineNumberView.m:
([BSLineNumberView mouseDown:]): New method
* Source/BSSourceView.h: New delegate prop-ivar
* Source/BSSourceView.m: Synthesizing the delegate ivar
Robert Sesek [Sun, 9 Mar 2008 18:37:46 +0000 (14:37 -0400)]
We now highlight the break'd line
* Source/BSSourceView.h: New prop-ivar markedLine
* Source/BSSourceView.m: ditto
* Source/BSSourceViewTextView.m:
([BSSourceViewTextView drawRect:]): Highlight the line
* Source/DebuggerWindowContrller.m:
([DebuggerWindowController updateSourceViewer]): Call [sourceViewer setMarkedLine:]
Robert Sesek [Sun, 9 Mar 2008 17:13:14 +0000 (13:13 -0400)]
Adding a method to scroll to a given line in the BSSourceView
* Source/BSSourceView.m:
([BSSourceView scrollToLine:]): New method that scrolls to a specific line in the NSTextView
* Source/BSSourceView.h: ditto
* Source/DebuggerWindowController.m:
([DebuggerWindowController updateSourceViewer]): Removing the scrolling logic that used to be here
Robert Sesek [Sun, 9 Mar 2008 16:54:14 +0000 (12:54 -0400)]
Set springs on the debugger window
* English.lproj/Debugger.xib
Robert Sesek [Sun, 9 Mar 2008 16:50:16 +0000 (12:50 -0400)]
We now draw the line number in the the middle of the the line's height, which means that if the line number is a smaller size than the line text it will be centered instead of drawn at the top
* Source/BSLineNumberView.m:
([BSLineNumberView drawRect:])
Robert Sesek [Sun, 9 Mar 2008 16:36:24 +0000 (12:36 -0400)]
Stroke the gutter at the top and bottom
* Source/BSLineNumberView.m:
([BSLineNumberView drawRect:]): Draw a line at the top and bottom of the gutter view
Robert Sesek [Sun, 9 Mar 2008 15:03:30 +0000 (11:03 -0400)]
Fixing a memory leak
* Source/NSXMLElementAdditions.m:
([NSXMLElement(NSXMLElementAdditions) value]): base64_decode_alloc() calls malloc() but not free() so we need to do it ourselves
Robert Sesek [Sun, 9 Mar 2008 04:38:07 +0000 (23:38 -0500)]
Add a bunch of new NSView classes (to form a meta-view BSSourceView) that adds a line-numbered NSTextView embedded in a NSScrollView
* English.lproj/Debugger.xib: Use our BSSourceView instead of an NSTextView for the source viewer
* Source/BSLineNumberView.h: new file
* Source/BSLineNumberView.m: new file
* Source/BSSourceView.h: new file
* Source/BSSourceView.m: new file
* Source/BSSourceViewTextView.h: new file
* Source/BSSourceViewTextView.m: new file
* MacGDBp.xcodeproj: Project updates for all the new files
* Source/DebuggerWindowController.h: Switch to using a BSSourceView
* Source/DebuggerWindowController.m: ditto
Robert Sesek [Mon, 14 Jan 2008 19:06:24 +0000 (11:06 -0800)]
The icons all had a bit of highlight hanging in the alpha, so removed all of it
* Icons/Reconnect.png
* Icons/Run.png
* Icons/StepIn.png
* Icons/StepOut.png
* Icons/StepOver.png
* Toolbar Buttons.psd
Robert Sesek [Fri, 11 Jan 2008 02:41:22 +0000 (18:41 -0800)]
Make the register and stack tables have uniform column resizing
* English.lproj/Debugger.xib
Robert Sesek [Fri, 11 Jan 2008 01:07:20 +0000 (17:07 -0800)]
Converting the rest of the NIBs to be XIBs simply for the sake of consistency
* English.lproj/Connect.nib: Removed
* English.lproj/MainMenu.nib: Removed
* English.lproj/Connect.xib: New file
* English.lproj/MainMenu.xib: New file
* MacGDBp.xcodeproj: Project updates for removed NIBs and new XIBs, also put all the XIBs into a group for organization sake
Robert Sesek [Fri, 11 Jan 2008 00:57:58 +0000 (16:57 -0800)]
Merge branch 'ui-polish'
Robert Sesek [Fri, 11 Jan 2008 00:57:38 +0000 (16:57 -0800)]
Lightening all the toolbar icons, removing the shadows off the shapes, lightening the drop shadow, and adding the reconnect icon
Robert Sesek [Fri, 11 Jan 2008 00:43:18 +0000 (16:43 -0800)]
Adding the Step Over and Run icons, as well as modifying the existing ones to be nicer
Robert Sesek [Fri, 11 Jan 2008 00:10:17 +0000 (16:10 -0800)]
We were previously using, for the stack table, the index of the row to determine which source file to show instead of the "level" column of the row, which means sorting the stack table would screw things up
* Source/DebuggerWindowController.m:
([DebuggerWindowController updateSourceViewer]): Switch to using the selected item's "level" rather than the selected row index
Robert Sesek [Fri, 11 Jan 2008 00:02:19 +0000 (16:02 -0800)]
Make sure that the source viewer is not editable
* Source/DebuggerWindowController.m:
([DebuggerWindowController awakeFromNib]):