Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Sherm Pendley
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

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Sherm Pendley
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

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Mark Wright
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

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Roland King
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

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
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

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Mark Wright
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

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
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,

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Roland King
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 >

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
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

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Gideon King
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

valueForKeyPath: not found in protocol

2010-11-16 Thread Remco Poelstra
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