• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSStream's enum of NSStreamEventEndEncountered.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSStream's enum of NSStreamEventEndEncountered.
      • From: Ken Thomases <email@hidden>
    • Re: NSStream's enum of NSStreamEventEndEncountered.
      • From: Sean McBride <email@hidden>
  • Prev by Date: Re: NSCursor tracking areas
  • Next by Date: Re: NSStream's enum of NSStreamEventEndEncountered.
  • Previous by thread: Re: NSCursor tracking areas
  • Next by thread: Re: NSStream's enum of NSStreamEventEndEncountered.
  • Index(es):
    • Date
    • Thread