aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextViewAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r--Source/SPTextViewAdditions.m15
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m
index 0d3b4b8e..b2a2354b 100644
--- a/Source/SPTextViewAdditions.m
+++ b/Source/SPTextViewAdditions.m
@@ -389,7 +389,6 @@
*/
- (IBAction)insertNULLvalue:(id)sender
{
-
id prefs = [NSUserDefaults standardUserDefaults];
if ([self respondsToSelector:@selector(insertText:)]) {
if([prefs stringForKey:SPNullValue] && [[prefs stringForKey:SPNullValue] length])
@@ -482,6 +481,19 @@
[self setEditable:editableStatus];
}
+/**
+ * Increase the textView's font size by 1
+ */
+- (void)makeTextStandardSize
+{
+ NSFont *aFont = [self font];
+ BOOL editableStatus = [self isEditable];
+ [self setEditable:YES];
+ [self setFont:[[NSFontManager sharedFontManager] convertFont:aFont toSize:11.0f]];
+ [self setEditable:editableStatus];
+}
+
+#ifndef SP_REFACTOR
- (IBAction)executeBundleItemForInputField:(id)sender
{
@@ -859,5 +871,6 @@
else if([anEvent deltaZ]<-5.0)
[self makeTextSizeSmaller];
}
+#endif
@end