Skip navigation.
 
mlDisplaying Audio & Video in NSTextView
FROM : August Trometer
DATE : Tue Jun 20 19:19:28 2006

I've got a Core Data app. In my managed object, I've got an NSData 
field called textData. I've bound this to the data of an NSTextView.

In the NSTextView I can type and drag images, audio, and movies, 
which is exactly what I want. When I drag them in, the movies and 
audio files display the QuickTime play bar. Images expand and show 
the whole image. All this is perfect.

The problem is when I try to re-load the NSTextView with the stored 
NSData in the managed object. When i do this, images show (as I would 
expect), but the audio and video files become an icon of the file 
rather than the "Player" I would expect.

I've searched through the archives and couldn't find anything 
helpful. I'm thinking I need to do something with NSTextAttachment, 
but, to be honest, I'm not sure what. Can someone point me in the 
right direction?

Thanks!

August

Related mailsAuthorDate
mlDisplaying Audio & Video in NSTextView August Trometer Jun 20, 19:19
mlRe: Displaying Audio & Video in NSTextView Douglas Davidson Jun 20, 20:39