Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [attrs setValue: paragraphStyle forKey: NSParagraphStyleAttributeName];
- [m_textView setTypingAttributes: attrs];
- paragraphStyle = [[NSMutableParagraphStyle alloc] init];
- [paragraphStyle setFirstLineHeadIndent: indent];
- [paragraphStyle setHeadIndent: indent];
- [storage addAttribute: NSParagraphStyleAttributeName value: paragraphStyle range: range];
- if( range.length == 0 )
- {
- [attrs setValue: paragraphStyle forKey: NSParagraphStyleAttributeName];
- [m_textView setTypingAttributes: attrs];
- }
- [paragraphStyle release];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement