• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Displaying Audio & Video in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Displaying Audio & Video in NSTextView
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Stopping an NSRunLoop OR getting NSDistributedNotificationCenter notifications
  • Next by Date: Re: NSDocument with fixed/auto-generated filename
  • Previous by thread: Re: NSComboBox Delegates
  • Next by thread: Re: Displaying Audio & Video in NSTextView
  • Index(es):
    • Date
    • Thread