bugGNUstep - Bugs: bug #36685, NSStreamDelegate is a formal...


You are not allowed to post comments on this tracker with your current authentication level.

bug #36685: NSStreamDelegate is a formal protocol now

Submitted by:  Thomas Davie <beelsebob>
Submitted on:  Tue 19 Jun 2012 12:25:30 PM UTC  
Category:  Base/Foundation Severity:  4 - Important
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Fri 20 Dec 2013 10:48:52 AM UTC, comment #4:

Marcus submitted a patch for this.

Richard Frith-Macdonald <CaS>
Project Member
Mon 09 Jul 2012 06:33:40 PM UTC, comment #3:

There's no problem adding protocols (we can just the version macros to have the protocol for recent OSX versions and no protocol when building for older versions) but ... this one uses the @optional keyword.

That means having it be compiler specific ... we have different versions of gcc and different versions of clang supporting different language additions :-(

That really means we would need to make use of this protocol conditional upon compiler features tested at build-time ... so I think this is really conditional upon someone designing/implementing a mechanism to make things used in headers conditonal upon the compiler being used.

Richard Frith-Macdonald <CaS>
Project Member
Wed 20 Jun 2012 05:00:46 PM UTC, comment #2:

This is a change request, not a bug. It is very important, however, that we consider this.

Gregory John Casamento <gcasa>
Project Administrator
Tue 19 Jun 2012 12:27:24 PM UTC, comment #1:

Woops sorry, pressed return by accident...

Apple defines NSStreamDelegate as a formal protocol now. This causes valid foundation code not to compile.

Steps to reproduce:
1) create a new class @interface A : NSObject<NSStreamDelegate> @end
2) compile the code

Expected results:
Compilation success

Actual results:
Failure due to the NSStreamDelegate protocol not being defined

Apple's definition:

@protocol NSStreamDelegate <NSObject>
- (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode;

Thomas Davie <beelsebob>
Tue 19 Jun 2012 12:25:30 PM UTC, original submission:
Thomas Davie <beelsebob>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by gcasa (Posted a comment)
  • -email is unavailable- added by beelsebob (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-12-20 CaS StatusNone => Fixed
        Open/ClosedOpen => Closed
    2012-06-20 gcasa Severity3 - Normal => 4 - Important
        Item GroupBug => Change Request

    Back to the top

    Powered by Savane 3.3