Skip to content

Commit

Permalink
• removed unnecessary code
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R-packages/trunk/Mac-GUI@6117 694ef91d-65df-0310-b7bb-92e67a308ead
  • Loading branch information
Hans-Jörg Bibiko committed Feb 27, 2012
1 parent 7d66783 commit 87a72b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
3 changes: 0 additions & 3 deletions NSTextView_RAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,4 @@
- (IBAction)moveSelectionLineUp:(id)sender;
- (IBAction)moveSelectionLineDown:(id)sender;

- (void)makeTextSizeLarger;
- (void)makeTextSizeSmaller;

@end
25 changes: 0 additions & 25 deletions NSTextView_RAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -481,29 +481,4 @@ - (IBAction)moveSelectionLineDown:(id)sender
}
}

/**
* Increase the textView's font size by 1
*/
- (void)makeTextSizeLarger
{
NSFont *aFont = [self font];
BOOL editableStatus = [self isEditable];
[self setEditable:YES];
[self setFont:[[NSFontManager sharedFontManager] convertFont:aFont toSize:[aFont pointSize]+1]];
[self setEditable:editableStatus];
}

/*
* Decrease the textView's font size by 1 but not smaller than 4pt
*/
- (void)makeTextSizeSmaller
{
NSFont *aFont = [self font];
NSInteger newSize = ([aFont pointSize]-1 < 4) ? [aFont pointSize] : [aFont pointSize]-1;
BOOL editableStatus = [self isEditable];
[self setEditable:YES];
[self setFont:[[NSFontManager sharedFontManager] convertFont:aFont toSize:newSize]];
[self setEditable:editableStatus];
}

@end

0 comments on commit 87a72b3

Please sign in to comment.