View Full Version : Core Data - NSString and NSTextView

Nov 18, 2010, 09:27 AM

So long story short, I want to insert a "Category.description" attribute of type NSString into a NSTextView. I know that NSTextViews look for a value of type NSData by default, so I deselected the "Rich Text" textbox in the inspector panel for the NSTextView. However, when I try to run the test program and add a coredata record, the debugger pops open.

From what I could read online, it seems as though binding the value of a NSTextView to a NSString after deselcting the "Rich Text" textbox should work. It isn't for me though....any ideas? Thanks!

Nov 18, 2010, 01:59 PM
When working with NSTextView and Core Data, what works for me is making the Core Data attribute I want to display Transformable instead of a String. I use NSTextView's Attributed String binding to bind the attribute to the text view.