Re: NSTextView and sound/movie attachments
Re: NSTextView and sound/movie attachments
- Subject: Re: NSTextView and sound/movie attachments
- From: Ivan Pinzon <email@hidden>
- Date: Fri, 3 Dec 2004 20:26:56 -0500
- the NSData contains the actual binary data for the sound or movie and I can succesfully create an attributed string from that to be exported as RTFD and read it successfully from TextEdit (I see the controller). But then as you say, the file is there in the package. Hmmm.
- Also, as soon as I drag the sound file to the NSTextView, I see the controller. If I try to delete the file, the Finder says it's in use, until I quit the app.
Is there a way to avoid getting the binary data in the RTFD (
RTFDFromRange) but just get a link/alias, so that I can write/copy the sound/movie to a separate file?
On Dec 3, 2004, at 7:09 PM, Douglas Davidson wrote:
On Dec 3, 2004, at 4:01 PM, Ivan Pinzon wrote:
The problem is when reading, I get the tiff icon for the sound/movie instead of the controller.
Image files work ok.
I checked the code for TextEdit, and saw that it uses:
- (NSFileWrapper *)RTFDFileWrapperFromRange:(NSRange)range documentAttributes:(NSDictionary *)dict;
The thing is I need to be able to store the RTFD (or attributed string) in my own archived object.
How can I do this? How can I restore the RTFD back into the NSTextView?
Currently I believe the situation is that embedded sound/movies in a text view need an actual file on disk in order for them to be able to play. This limitation may be lifted in the future.
Douglas Davidson
_______________________________________________
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