On Tue, Nov 16, 2010 at 7:28 AM, Sherm Pendley wrote:
> On Tue, Nov 16, 2010 at 6:27 AM, Remco Poelstra wrote:
>
>> Op 16 nov 2010, om 12:18 heeft Mark Wright het volgende geschreven:
>>
>> > You need to write your protocol declaration in
>> AudionetQueueDelegateProtocol.h as:
>> >
>> > @protocol
On Tue, Nov 16, 2010 at 6:27 AM, Remco Poelstra wrote:
> Op 16 nov 2010, om 12:18 heeft Mark Wright het volgende geschreven:
>
> > You need to write your protocol declaration in
> AudionetQueueDelegateProtocol.h as:
> >
> > @protocol AudionetQueueDelegate
>
> That does not seem to work.
> I now
On 16 Nov 2010, at 11:27:22, Remco Poelstra wrote:
Op 16 nov 2010, om 12:18 heeft Mark Wright het volgende geschreven:
Your AudionetQueueDelegate protocol is probably not inheriting from
(the protocol) so it warns that valueForKeyPath: is not
found. It'll also probably complain about met
Yes that wont work, which is why I said NSObject*< protocol> instead of
id
valueForKeyPath: is not defined in the NSObject protocol, but is defined on
NSObject itself which is why it works.
On Nov 16, 2010, at 19:27, Remco Poelstra wrote:
> Op 16 nov 2010, om 12:18 heeft Mark Wright het vo
Op 16 nov 2010, om 12:18 heeft Mark Wright het volgende geschreven:
> Your AudionetQueueDelegate protocol is probably not inheriting from
> (the protocol) so it warns that valueForKeyPath: is not found.
> It'll also probably complain about methods like respondsToSelector: which is
> also part
Your AudionetQueueDelegate protocol is probably not inheriting from
(the protocol) so it warns that valueForKeyPath: is not
found. It'll also probably complain about methods like
respondsToSelector: which is also part of the NSObject protocol.
You need to write your protocol declaration i
More elegant indeed :). I thought delegates had to be of type id.
Kind regards,
Remco Poelstra
Op 16 nov 2010, om 11:57 heeft Roland King het volgende geschreven:
> Or use
>
> NSObject*< protocol >
>
> Instead of id. Assuming that all the objects are NSObjects.
>
>
>
> On Nov 16, 2010,
Or use
NSObject*< protocol >
Instead of id. Assuming that all the objects are NSObjects.
On Nov 16, 2010, at 18:43, Gideon King wrote:
> AFAIK, when something is referenced as a protocol like that, the *only*
> methods it knows about are the ones in the protocol. If you just cast the
>
That works indeed. I hoped there was a more elegant solution.
Kind regards,
Remco Poelstra
Op 16 nov 2010, om 11:43 heeft Gideon King het volgende geschreven:
> AFAIK, when something is referenced as a protocol like that, the *only*
> methods it knows about are the ones in the protocol. If you
AFAIK, when something is referenced as a protocol like that, the *only* methods
it knows about are the ones in the protocol. If you just cast the delegate to
type id, you should be OK (I have encountered similar situations where this
solution worked)
[(id)delegate valueForKeyPath:...
HTH
Gide
Hi,
I've somewhat the same problem as a recent thread, but I can't fix it with what
was suggested in that thread.
I've to following class:
#import
#import "AudionetCommand.h"
#import "AudionetQueueDelegateProtocol.h"
@interface AudionetCommandQueue : NSObject {
id delegate;
}
@property
11 matches
Mail list logo