Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9241489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:22:50+00:00 2026-06-18T08:22:50+00:00

@interface Server : NSObject { id<ServerDelegate> _delegate; NSInputStream *_inputStream; NSOutputStream *_outputStream; } @property(nonatomic, assign)

  • 0
@interface Server : NSObject {
    id<ServerDelegate> _delegate;
    NSInputStream *_inputStream;
    NSOutputStream *_outputStream;
}

@property(nonatomic, assign) id<ServerDelegate> delegate;

Whenever I set the delegate of the input or output streams I get a warning that it’s assigning to id from incompatible type Server*.

self.inputStream.delegate = self is an example of this.

The actual server runs fine it’s just the warning that concerns me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:22:51+00:00Added an answer on June 18, 2026 at 8:22 am

    If you want to assign self (Server obejct) as the delegate of NSInputStream, your Server object must conform to the NSStreamDelegate protocol.

    Since NSInputStream is a subclass of NSStream

    https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSStream_Class/Reference/Reference.html#//apple_ref/occ/cl/NSStream

    @interface Server : NSObject<NSStreamDelegate> 
    [...]
    @end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was using JAXB as DTO to set a stable interface between Server and
I have an MKMapView whose delegate is set in Interface Builder and which is
I am writing a firefox extension that interacts with a JSON server interface. I
I'd like my rack application to be able to interface with a server-side javascript
REST is concerned with specifying how a remote client can interface with a server,
I have several server controls that implement the IValidator interface. As such, they have
I need to access a third-party COM server with following interface definition (idl): interface
I'm developing a java interface between a streaming server and a flash client. I
I am running Tomcat Apache server for solr and I my web interface is
I have a class DataObject as Header ::: #import <Foundation/Foundation.h> @interface DataObject : NSObject

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.