Displaying Audio & Video in NSTextView
Displaying Audio & Video in NSTextView
- Subject: Displaying Audio & Video in NSTextView
- From: August Trometer <email@hidden>
- Date: Tue, 20 Jun 2006 13:19:28 -0400
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden