On Dec 4, 2012, at 16:50 , gary.gard...@brokensoftware.com wrote:

> The setSampleBufferDelegate:self queue:queue gives a warning in XCode that
> says Sending '<my object name here>' to parameter of incompatible type
> 'id'<AVCaptureVideoDataOutputSampleBufferDelegate>'

You need to declare the class of 'self' as conforming to the 
AVCaptureVideoDataOutputSampleBufferDelegate protocol. So, for example, if 
'self' is your app delegate, of class MyAppDelegate, then in the header file 
instead of this:

        @interface MyAppDelegate : NSObject

you'd put this:

        @interface MyAppDelegate : NSObject 
<AVCaptureVideoDataOutputSampleBufferDelegate>


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to