• 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
Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)


  • Subject: Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 24 Sep 2010 12:49:29 -0700

On Sep 24, 2010, at 05:13, Carles Gutierrez wrote:

> CGImageRef capturedImage = [(QTMovie*)movie frameImageAtTime:time
> withAttributes:attributes error:NULL];
>
> I am getting this error for the last line:
> error: invalid conversion from 'void*' to 'CGImage*'
>
> BUT I am NOT getting an error for the line above that...
>
> Given the attributes I have set, particularly [attributes
> setObject:QTMovieFrameImageTypeCGImageRef forKey: QTMovieFrameImageType];
> Shouldn't frameAtImageTime: return a CGImageRef?

It doesn't matter what kind of object you've asked for at run time, because the error you're seeing is a compilation error.

So this code is in a Objective-C++ file? It compiles without error for me (GCC 4.2) as plain Objective-C.

As C++, it probably requires an explicit cast from the return type of frameImageAtTime:withAttributes:error: -- that is, NSImage* -- to CGImageRef.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >invalid conversion from 'void*' to 'CGImage*' (QTMovie) (From: Carles Gutierrez <email@hidden>)

  • Prev by Date: Re: UITableview scrollStyle
  • Next by Date: Re: NSBox setContentView: messing with the cursor
  • Previous by thread: invalid conversion from 'void*' to 'CGImage*' (QTMovie)
  • Next by thread: Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)
  • Index(es):
    • Date
    • Thread