• 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: John MacMullin <email@hidden>
  • Date: Fri, 11 Jun 2010 14:13:06 -0700

Thanks!

On Jun 11, 2010, at 1:39 PM, Christiaan Hofman wrote:


On Jun 11, 2010, at 22:26, John MacMullin 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


Read the 10.6 release notes. On 10.6 (i.e. using the 10.6 SDK) delegate methods are generally defined in formal protocols rather than informal protocols as before, which means you have to declare the protocol conformance in the class interface of the delegate. You can also use the 10.5 SDK instead.

Christiaan


Best regards,

John MacMullin
Attorney at Law
1-602-943-5240
1-602-904-5426
1-800-924-8548
Email:email@hidden
Skype: john_macmullin
www.macmullin.info

CONFIDENTIALITY - The information contained in this email is confidential information, may be legally privileged, and is intended only for the use of the individuals or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any disclosure, dissemination, distribution, or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify us immediately by telephone or by reply letter and delete or destroy the message in its entirety.

 _______________________________________________
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

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

  • Prev by Date: Re: "symbols hidden by default" causing runtime crashes
  • Next by Date: Re: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
  • 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