Re: Converting an AttributedString into NSData for an NSTextView

2010-09-25 Thread Keary Suska
On Sep 25, 2010, at 10:06 AM, Brad Stone wrote: > I've been programming in Cocoa for 12 months now so I may not understand the > subject fully but my NSTextView Data binding is connected to a Core Data > attribute of type "Binary Data" (NSData) and this works when I manually type > in text, set

Re: Converting an AttributedString into NSData for an NSTextView

2010-09-25 Thread Brad Stone
I've been programming in Cocoa for 12 months now so I may not understand the subject fully but my NSTextView Data binding is connected to a Core Data attribute of type "Binary Data" (NSData) and this works when I manually type in text, set some attributes like underline or font, save it and reop

Re: Converting an AttributedString into NSData for an NSTextView

2010-09-25 Thread Keary Suska
On Sep 25, 2010, at 9:12 AM, Brad Stone wrote: > I have an NSMutableString that I want to set as the NSData source for an > NSTextView. I'm stuck and don't know how to do it. I'm importing about > 4,000 XML files and I have to programmatically create the attributedString > for each one, the

Converting an AttributedString into NSData for an NSTextView

2010-09-25 Thread Brad Stone
I have an NSMutableString that I want to set as the NSData source for an NSTextView. I'm stuck and don't know how to do it. I'm importing about 4,000 XML files and I have to programmatically create the attributedString for each one, there's no way around it. How do I convert an NSMutableStri