NSMovie jpg question
NSMovie jpg question
- Subject: NSMovie jpg question
- From: Howard Shere <email@hidden>
- Date: Wed, 1 Mar 2006 18:15:54 -0600
I have been handed some code which is for an iMovie plugin. The code
used to work, but something in either Tiger or iMovie 6 (actually,
probably some change to quicktime) has caused the code to not work in
one case.
The line of code which I traced the failure to is:
theMovie = [[NSMovie alloc] initWithURL: myURL byReference: NO];
This seems to fail sometimes when the URL is for a jpg. The code always
works for other graphics formats. The URLs are always file: URLs. It
doesn't always fail on the jpg URLs. The same URL will load a few times
using the above code and then the theMovie will end up being NULL after
a call later on in the plugin code.
Since I don't know how to tell what the real problem might be I am
going to code around the problem. I seem to be able to always alloc and
init an NSImage object with the same jpg URL (even when the NSMovie
line above fails) so I am going to do that and then make a movie in
memory from the NSImage data. I found sample code which does this so it
won't be that much work, but it isn't really the best solution to the
problem.
I'd rather get the above line of code to work consistantly like it used
to, but I don't know if there is a way to do that.
Any suggestions?
Howard Shere
http://www.livejournal.com/users/realgreendragon/
Altair 8800a to Mac OS X so far...
_______________________________________________
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