Re: Question about respondsToSelector
Re: Question about respondsToSelector
- Subject: Re: Question about respondsToSelector
- From: Marcel Weiher <email@hidden>
- Date: Wed, 20 Aug 2008 18:38:04 -0700
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@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