Core Data - NSString and NSTextView

Discussion in 'Mac Programming' started by mwkoehler, Nov 18, 2010.

  1. mwkoehler macrumors newbie

    Nov 15, 2010

    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!
  2. szymczyk macrumors regular

    Mar 5, 2006
    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.

Share This Page