[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #40925] NSStreamDelegate protocol for clang
From: |
Marcus Müller |
Subject: |
[bug #40925] NSStreamDelegate protocol for clang |
Date: |
Mon, 16 Dec 2013 16:45:09 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.71 (KHTML, like Gecko) Version/7.0 Safari/537.71 |
URL:
<http://savannah.gnu.org/bugs/?40925>
Summary: NSStreamDelegate protocol for clang
Project: GNUstep
Submitted by: znek
Submitted on: Mon 16 Dec 2013 04:45:08 PM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Change Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40925>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #40925] NSStreamDelegate protocol for clang,
Marcus Müller <=