aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPBundleEditorController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-11-21 19:42:42 +0000
committerBibiko <bibiko@eva.mpg.de>2010-11-21 19:42:42 +0000
commit79bf97de1dc30afb75a07958ff99b6f95473383e (patch)
treef789a43c40c6ff3f4c7868ba0115fc90926f8aea /Source/SPBundleEditorController.m
parentecba7ac8da8f0f2728bf23815e9103b42ec81729 (diff)
downloadsequelpro-79bf97de1dc30afb75a07958ff99b6f95473383e.tar.gz
sequelpro-79bf97de1dc30afb75a07958ff99b6f95473383e.tar.bz2
sequelpro-79bf97de1dc30afb75a07958ff99b6f95473383e.zip
• added line numbering and current line highlighting to Bundle Editor's command text view
• made each Bundle in/ouptut file name unique to allow to run different Bundle commands at the same time • fixed minor issues for Bundle Editor
Diffstat (limited to 'Source/SPBundleEditorController.m')
-rw-r--r--Source/SPBundleEditorController.m13
1 files changed, 8 insertions, 5 deletions
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m
index 829cff3e..8587082b 100644
--- a/Source/SPBundleEditorController.m
+++ b/Source/SPBundleEditorController.m
@@ -205,11 +205,6 @@
[keyEquivalentField setCanCaptureGlobalHotKeys:YES];
- if([[NSUserDefaults standardUserDefaults] dataForKey:@"BundleEditorFont"]) {
- NSFont *nf = [NSUnarchiver unarchiveObjectWithData:[[NSUserDefaults standardUserDefaults] dataForKey:@"BundleEditorFont"]];
- [commandTextView setFont:nf];
- }
-
}
#pragma mark -
@@ -982,6 +977,14 @@
#pragma mark NSTextView delegates
/**
+ * Update command text view for highlighting the current edited line
+ */
+- (void)textViewDidChangeSelection:(NSNotification *)aNotification
+{
+ [commandTextView setNeedsDisplay:YES];
+}
+
+/**
* Traps any editing in editTextView to allow undo grouping only if the text buffer was really changed.
* Inform the run loop delayed for larger undo groups.
*/