Re: NSStream's enum of NSStreamEventEndEncountered.

2014-07-24 Thread Alex Zavatone
On Jul 24, 2014, at 4:43 PM, Quincey Morris wrote: > On Jul 24, 2014, at 11:58 , edward taffel wrote: > >> NSStreamEventOpenCompleted = 1 << 0, >> >> a point of style? > > Supposition: > > It’s point of API self-documentation. The shift indicates that this is a bit > mask (or bit field) val

Re: NSStream's enum of NSStreamEventEndEncountered.

2014-07-24 Thread Quincey Morris
On Jul 24, 2014, at 11:58 , edward taffel wrote: > NSStreamEventOpenCompleted = 1 << 0, > > a point of style? Supposition: It’s point of API self-documentation. The shift indicates that this is a bit mask (or bit field) value, and hence that the enum’s members can usefully be OR’ed together.

Re: NSStream's enum of NSStreamEventEndEncountered.

2014-07-24 Thread Alex Zavatone
On Jul 24, 2014, at 2:46 PM, Ken Thomases wrote: > On Jul 24, 2014, at 1:05 PM, Alex Zavatone wrote: > >> - (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 NSStreamEvent

Re: NSStream's enum of NSStreamEventEndEncountered.

2014-07-24 Thread edward taffel
On Jul 24, 2014, at 2:45 PM, Sean McBride wrote: > On Thu, 24 Jul 2014 14:05:17 -0400, Alex Zavatone said: > >> If I change >> >> case NSStreamEventEndEncountered: >> >> to >> >> case 4: >> >> the event is caught. >> >> Since NSStreamEventEndEncountered is supposed to = 1UL << 4 in t

Re: NSStream's enum of NSStreamEventEndEncountered.

2014-07-24 Thread Ken Thomases
On Jul 24, 2014, at 1:05 PM, Alex Zavatone wrote: > - (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. NSStreamEventEndEnc

Re: NSStream's enum of NSStreamEventEndEncountered.

2014-07-24 Thread Sean McBride
On Thu, 24 Jul 2014 14:05:17 -0400, Alex Zavatone said: >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? Um,