Added Helper Categories
Added Documentation
This commit is contained in:
19
MathPad/NSTextStorage+MPSetContents.m
Normal file
19
MathPad/NSTextStorage+MPSetContents.m
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// NSTextStorage+MPSetContents.m
|
||||
// MathPad
|
||||
//
|
||||
// Created by Kim Wittenburg on 21.04.14.
|
||||
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSTextStorage+MPSetContents.h"
|
||||
|
||||
@implementation NSTextStorage (MPSetContents)
|
||||
|
||||
- (void)setString:(NSString *)string
|
||||
{
|
||||
NSAttributedString *attributedString = [[NSAttributedString alloc] initWithString:string];
|
||||
[self setAttributedString:attributedString];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user