Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mwkoehler

macrumors newbie
Original poster
Nov 15, 2010
2
0
Hey,

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!
 

szymczyk

macrumors regular
Mar 5, 2006
187
17
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.