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

Group
 
 

bug #36685: NSStreamDelegate is a formal protocol now

Submitter:  Thomas Davie <beelsebob>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Marcus submitted a patch for this.

Richard Frith-Macdonald <CaS>
Group 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>
Group 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>
Group administrator
Tue 19 Jun 2012 12:27:24 PM UTC, comment #1: 

Woops sorry, pressed return by accident...

Description:
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

Notes:
Apple's definition:

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

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


Thomas Davie <beelsebob>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-02a9.
    Corresponding source code