NSStream's enum of NSStreamEventEndEncountered.
NSStream's enum of NSStreamEventEndEncountered.
- Subject: NSStream's enum of NSStreamEventEndEncountered.
- From: Alex Zavatone <email@hidden>
- Date: Thu, 24 Jul 2014 14:05:17 -0400
In Xcode 5.1.1 and coding for iOS 7, I was just wondering why not all of NSStream's enums are able to be caught in a switch/case statement in the NSStreamDelegate
In
- (void)stream:(NSStream *)theStream handleEvent:(NSStreamEvent) streamEvent,
I'll log streamEvent and in the case of 4, which is is supposed to be typdefed to NSStreamEventEndEncountered, it's never trapped at all.
If I change
case NSStreamEventEndEncountered:
to
case 4:
the event is caught.
Since NSStreamEventEndEncountered is supposed to = 1UL << 4 in the NSStream header, does anyone have any idea what's going on here?
Thanks in advance.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden