Re: Question about respondsToSelector

2008-08-20 Thread Marcel Weiher
On Aug 19, 2008, at 6:33 AM, Carmen Cerino Jr. wrote: if ([_delegate respondsToSelector: @selector(SGDecompDataProc:)]){ [_delegate SGDecompDataProc:pixelBuffer trackingFlags:decompressionTrackingFlags disp

Re: Question about respondsToSelector

2008-08-19 Thread Mike Fischer
Am 19.08.2008 um 15:36 schrieb "Carmen Cerino Jr." <[EMAIL PROTECTED]>: if ([_delegate respondsToSelector: @selector(SGDecompDataProc:)]){ The signature of your method seems to be: SGDecompDataProc:trackingFlags:displayTime:displayDuration:validTimeFlag s: not: SGDecompDataProc

Re: Question about respondsToSelector

2008-08-19 Thread Carmen Cerino Jr.
*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. Thank you all. I am going to go back to making an ass out of myself in the privacy of my own home. Cheers, Carmen On Aug

Re: Question about respondsToSelector

2008-08-19 Thread Jonathan del Strother
On Tue, Aug 19, 2008 at 2:33 PM, Carmen Cerino Jr. <[EMAIL PROTECTED]> wrote: > Sorry about the sketchy details. Basically I have a wrapper class for the > Sequence Grabber, and I want to setup a delegate for the decompression > callback. > > This is where I use the respondsToSelector method: > sta

Re: Question about respondsToSelector

2008-08-19 Thread Carmen Cerino Jr.
Sorry about the sketchy details. Basically I have a wrapper class for the Sequence Grabber, and I want to setup a delegate for the decompression callback. This is where I use the respondsToSelector method: static void SGVideoDecompTrackingCallback( void *decompressionTrackingR

Re: Question about respondsToSelector

2008-08-18 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 20:17 schrieb Carmen Cerino Jr.: Does the id type have enough information for the respondsToSelector method to work. I have a class with an ivar of type id, and when I invoke the respondsToSelector method it fails when it should succeed. I am assuming it should work fin

Re: Question about respondsToSelector

2008-08-18 Thread Andy Lee
Also: note that method names are case-sensitive, so @selector(doSomething) is not the same as @selector(doSomeThing). Also, if the method you are referring to takes an argument, make sure you aren't forgetting the colon at the end. The name of the method contains all its colons; @selector(

Re: Question about respondsToSelector

2008-08-18 Thread Andy Lee
On Aug 18, 2008, at 2:17 PM, Carmen Cerino Jr. wrote: Does the id type have enough information for the respondsToSelector method to work. It's not whether the id type has information. It's whether the object itself is able to respond to a message, and that depends on what class the object

Re: Question about respondsToSelector

2008-08-18 Thread j o a r
On Aug 18, 2008, at 11:17 AM, Carmen Cerino Jr. wrote: Does the id type have enough information for the respondsToSelector method to work. I have a class with an ivar of type id, and when I invoke the respondsToSelector method it fails when it should succeed. I am assuming it should work f

Re: Question about respondsToSelector

2008-08-18 Thread Chris Hanson
On Aug 18, 2008, at 11:17 AM, Carmen Cerino Jr. wrote: Does the id type have enough information for the respondsToSelector method to work. I have a class with an ivar of type id, and when I invoke the respondsToSelector method it fails when it should succeed. I am assuming it should work fi

Re: Question about respondsToSelector

2008-08-18 Thread Ricky Sharp
On Aug 18, 2008, at 1:17 PM, Carmen Cerino Jr. wrote: Does the id type have enough information for the respondsToSelector method to work. I have a class with an ivar of type id, and when I invoke the respondsToSelector method it fails when it should succeed. I am assuming it should work fi

Question about respondsToSelector

2008-08-18 Thread Carmen Cerino Jr.
Does the id type have enough information for the respondsToSelector method to work. I have a class with an ivar of type id, and when I invoke the respondsToSelector method it fails when it should succeed. I am assuming it should work fine, because if I skip checking with the respondsToSelec