Re: Extract plain text content from a Text View

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 11:21 PM, Ian Piper wrote: That would suit me well if I could just understand how to tap into it. I can set up filterPredicates in IB for other attributes in my data model but not for the one that is displaying its content in the NSTextView. Why are you using predicat

Re: Extract plain text content from a Text View

2009-10-16 Thread Ian Piper
On 17 Oct 2009, at 05:18, Jens Alfke wrote: On Oct 16, 2009, at 3:42 PM, Ian Piper wrote: The Text View is simply used as a place for the user to put any rich text and or images. Is there a way either to search or to get all of the plain text out from such a Text View? It's probably a s

Re: Extract plain text content from a Text View

2009-10-16 Thread Ian Piper
On 17 Oct 2009, at 00:46, Charles Srstka wrote: On Oct 16, 2009, at 5:42 PM, Ian Piper wrote: The Text View is simply used as a place for the user to put any rich text and or images. Is there a way either to search or to get all of the plain text out from such a Text View? It's probably a

Re: Extract plain text content from a Text View

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 3:42 PM, Ian Piper wrote: The Text View is simply used as a place for the user to put any rich text and or images. Is there a way either to search or to get all of the plain text out from such a Text View? It's probably a simplistic question and I rather suspect that ul

Re: Extract plain text content from a Text View

2009-10-16 Thread Charles Srstka
On Oct 16, 2009, at 5:42 PM, Ian Piper wrote: The Text View is simply used as a place for the user to put any rich text and or images. Is there a way either to search or to get all of the plain text out from such a Text View? It's probably a simplistic question and I rather suspect that ult

Re: Extract plain text content from a Text View

2009-10-16 Thread Ian Piper
On 16 Oct 2009, at 20:51, I. Savant wrote: On Oct 16, 2009, at 3:44 PM, I. Savant wrote: I want to figure out a way to build a search predicate that will allow me to search a Text View and I think this is likely to be the only way. Seems a bit odd. Could you elaborate? Let *me* elabor

Re: Extract plain text content from a Text View

2009-10-16 Thread I. Savant
On Oct 16, 2009, at 3:44 PM, I. Savant wrote: I want to figure out a way to build a search predicate that will allow me to search a Text View and I think this is likely to be the only way. Seems a bit odd. Could you elaborate? Let *me* elaborate on *that*. :-) You normally use predicat

Re: Extract plain text content from a Text View

2009-10-16 Thread Nick Zitzmann
On Oct 16, 2009, at 1:37 PM, Ian Piper wrote: Is there a way to get the plain text content out of an NSTextStorage object (displaying using a Text View) that contains rich text and images?

Re: Extract plain text content from a Text View

2009-10-16 Thread I. Savant
On Oct 16, 2009, at 3:37 PM, Ian Piper wrote: Is there a way to get the plain text content out of an NSTextStorage object (displaying using a Text View) that contains rich text and images? An NSTextStorage is a subclass of NSMutableAttributedString, which is a subclass of NSAttributedSt

Re: Extract plain text content from a Text View

2009-10-16 Thread Douglas Davidson
NSTextStorage is a subclass of NSMutableAttributedString. Is that enough of a hint? Douglas Davidson On Oct 16, 2009, at 12:37 PM, Ian Piper wrote: Hi all, Is there a way to get the plain text content out of an NSTextStorage object (displaying using a Text View) that contains rich text

Re: Extract plain text content from a Text View

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 12:37 PM, Ian Piper wrote: Is there a way to get the plain text content out of an NSTextStorage object (displaying using a Text View) that contains rich text and images? I want to figure out a way to build a search predicate that will allow me to search a Text View and