On Aug 19, 2008, at 6:33 AM, Carmen Cerino Jr. wrote:
if ([_delegate respondsToSelector:
@selector(SGDecompDataProc:)]){
[_delegate SGDecompDataProc:pixelBuffer
trackingFlags:decompressionTrackingFlags
displayTime:displayTime
displayDuration:displayDuration
validTimeFlags:validTimeFlags]
[had full selector originally, but didn't work]
*Smacks forehead*
Believe it or not I had that originally and it didn't work. I must
of had a type-o in the function header that I was passing to
respondsToSelector.
One way to avoid that sort of problem is the "ifResponds" Higher Order
Message:
[[_delegate ifResponds] SGDecompDataProc:pixelBuffer
trackingFlags:decompressionTrackingFlags
displayTime:displayTime
displayDuration:displayDuration
validTimeFlags:validTimeFlags]
This will send the message if _delegate responds to it.
Cheers,
Marcel
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]