Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated setTextViewStringTo: method to reset the textView's NSTextSto…

…rage to have the same font and size but with out the bold.

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information...
commit 86b6ed69406f259ce7e961fe10337d753b73733e 1 parent b6b1ab1
@catsby catsby authored committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/JRFeedbackController.m
View
5 lib/JRFeedbackController.m
@@ -238,9 +238,10 @@ - (void)windowWillClose:(NSNotification*)notification {
- (void)setTextViewStringTo:(NSString *)details
{
- // TODO: doing this makes all the text bold, I'm not hip to the attr string stuff done in this class
- // so it's not easy for me to fix.
+ NSFont *resetFontWeight = [[textView textStorage] font];
+ [[textView textStorage] setFont:[NSFont fontWithName:[resetFontWeight familyName] size:[resetFontWeight pointSize]]];
[textView setString:details];
+ [resetFontWeight release];
}
+ (NSURL*)postURL {
Please sign in to comment.
Something went wrong with that request. Please try again.