• 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
NSMovie jpg question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Cut, Copy, & Paste Question.
  • Next by Date: Macbook Pro software update
  • Previous by thread: Re: Cut, Copy, & Paste Question.
  • Next by thread: Macbook Pro software update
  • Index(es):
    • Date
    • Thread