bugGNUstep - Bugs: bug #40925, NSStreamDelegate protocol for clang

 
 

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

bug #40925: NSStreamDelegate protocol for clang

Submitted by:  Marcus Müller <znek>
Submitted on:  Mon 16 Dec 2013 04:45:08 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: Change RequestStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 20 Dec 2013 10:02:43 AM UTC, comment #1:

Thanks … I applied that patch

Richard Frith-Macdonald <CaS>
Project Member
Mon 16 Dec 2013 04:45:08 PM UTC, original submission:

When compiling with clang, the former informal NSStreamDelegate protocol can be declared as a formal protocol, in order to increase compatibility with Cocoa code.
This is as straightforward as other comparable code points in GNUstep:

Index: Headers/Foundation/NSStream.h
===================================================================
--- Headers/Foundation/NSStream.h (revision 37467)
+++ Headers/Foundation/NSStream.h (working copy)
@@ -270,10 +270,15 @@
GS_EXPORT NSString * const NSStreamSOCKSProxyVersion5;
GS_EXPORT NSString * const NSStreamSOCKSProxyVersionKey;

+#ifdef _clang_ /* FIXME ... this is not clang specific */
+@protocol NSStreamDelegate <NSObject>
+@optional
+#else
/**
* Informal protocol for delegates of instance of the [NSStream] class.
*/
-@interface NSObject (NSStreamDelegate)
+@interface NSObject (NSStreamDelegate)
+#endif
- (void) stream: (NSStream*)sStream handleEvent: (NSStreamEvent)anEvent;
@end

Marcus Müller <znek>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by znek (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 20 Dec 2013 10:02:43 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1