Archived
1
This repository has been archived on 2022-08-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mathpad/MathPad/NSTextStorage+MPSetContents.m
Kim Wittenburg 24c53bde2e Added Helper Categories
Added Documentation
2014-04-23 03:09:26 +02:00

20 lines
438 B
Objective-C

//
// 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