• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: valueForKeyPath: not found in protocol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: valueForKeyPath: not found in protocol


  • Subject: Re: valueForKeyPath: not found in protocol
  • From: Roland King <email@hidden>
  • Date: Tue, 16 Nov 2010 20:20:01 +0800

Yes that wont work, which is why I said NSObject*< protocol> instead of id<NSObject,protocol>

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 <email@hidden> wrote:

> Op 16 nov 2010, om 12:18 heeft Mark Wright het volgende geschreven:
>
>> Your AudionetQueueDelegate protocol is probably not inheriting from <NSObject> (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 in AudionetQueueDelegateProtocol.h as:
>>
>>
>> @protocol AudionetQueueDelegate <NSObject>
>> ...
>> @end
>>
>>
>> Then it should silence the warnings and no casting is required (which is not the correct solution in this case I believe).
>
>
> That does not seem to work.
> I now have:
> #import <UIKit/UIKit.h>
> @protocol AudionetQueueDelegate <NSObject>
> @end
>
> But then the warning returns. (Having set the delegate to id <AudionetQueueDelegate> again).
>
> Kind regards,
>
> Remco Poelstra
>
> _______________________________________________
>
> 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
_______________________________________________

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

References: 
 >valueForKeyPath: not found in protocol (From: Remco Poelstra <email@hidden>)
 >Re: valueForKeyPath: not found in protocol (From: Mark Wright <email@hidden>)
 >Re: valueForKeyPath: not found in protocol (From: Remco Poelstra <email@hidden>)

  • Prev by Date: Re: valueForKeyPath: not found in protocol
  • Next by Date: Re: valueForKeyPath: not found in protocol
  • Previous by thread: Re: valueForKeyPath: not found in protocol
  • Next by thread: Re: valueForKeyPath: not found in protocol
  • Index(es):
    • Date
    • Thread