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
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 mails | Author | Date |
|---|---|---|
| August Trometer | Jun 20, 19:19 | |
| Douglas Davidson | Jun 20, 20:39 |






Cocoa mail archive

