• 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: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol


  • Subject: Re: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
  • From: Robert Vojta <email@hidden>
  • Date: Fri, 11 Jun 2010 22:43:01 +0200

Does your CocoaEchoServer.h file contain line like ...

@interface EchoServer : BaseClass <NSStreamDelegate> {

... you need to specify that your class does implement it.

Regards,
Robert

--
Sent from my iPhone

On 11.6.2010, at 22:26, John MacMullin <email@hidden> wrote:

> I have implemented Cocoaserver as exampled by Apple.  I am now receiving two warning errors on the build:  "CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol".
>
> I have implemented: "- (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)streamEvent", which I believe is the correct delegate protocol method from:  http://developer.apple.com/mac/library/documentation/cocoa/reference/NSStreamDelegate_Protocol/Reference/Reference.html
>
> With that background, why the warning message?
>
> John MacMullin
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
      • From: John MacMullin <email@hidden>
References: 
 >CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol (From: John MacMullin <email@hidden>)

  • Prev by Date: Re: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
  • Next by Date: Re: "symbols hidden by default" causing runtime crashes
  • Previous by thread: Re: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
  • Next by thread: Re: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
  • Index(es):
    • Date
    • Thread