Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
On Tue, Jun 23, 2015, at 10:20 PM, Alex Zavatone wrote: > It's not being thrown by my own code. It's a rotate event that's being > sent by the system. [snip] > The event's type doesn't match the enums. The event's type doesn't match > any enum that I know of. Again: your app needs to be OK wi

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Alex Zavatone
On Jun 23, 2015, at 10:50 PM, Kyle Sluder wrote: >> On Jun 23, 2015, at 7:31 PM, Alex Zavatone wrote: > >> >> >> On Jun 23, 2015, at 9:27 PM, Kyle Sluder wrote: >> On Jun 23, 2015, at 6:10 PM, Alex Zavatone wrote: Actually, the rotate event is the one that is being caught an

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
> On Jun 23, 2015, at 7:31 PM, Alex Zavatone wrote: > > > On Jun 23, 2015, at 9:27 PM, Kyle Sluder wrote: > >>> On Jun 23, 2015, at 6:10 PM, Alex Zavatone wrote: >>> >>> Actually, the rotate event is the one that is being caught and sent. >>> >>> If it's a UIEvent and it's listed as a UIInt

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Alex Zavatone
On Jun 23, 2015, at 9:27 PM, Kyle Sluder wrote: >> On Jun 23, 2015, at 6:10 PM, Alex Zavatone wrote: >> >> Actually, the rotate event is the one that is being caught and sent. >> >> If it's a UIEvent and it's listed as a UIInternalEvent, within the debugger, >> how do I check the type and sub

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
> On Jun 23, 2015, at 6:10 PM, Alex Zavatone wrote: > > Actually, the rotate event is the one that is being caught and sent. > > If it's a UIEvent and it's listed as a UIInternalEvent, within the debugger, > how do I check the type and subtype to see what type of event it is so that I > can re

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Alex Zavatone
Actually, the rotate event is the one that is being caught and sent. If it's a UIEvent and it's listed as a UIInternalEvent, within the debugger, how do I check the type and subtype to see what type of event it is so that I can return immediately if it is the wrong type? On Jun 23, 2015, at 7:3

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
On Tue, Jun 23, 2015, at 02:54 PM, Alex Zavatone wrote: > We don't care about motion events. We only care about touch events. > > I'm trying to check if the event is a of UIEventTypeMotion and simply > return. If you only care about touch events, why aren't you comparing against UIEventTypeTouch

iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Alex Zavatone
I'm running into an interesting exception being thrown by a watcher class that pipes events around before they get to the expected class that will handle them. In one special case where I rotate the device a "UIInternal" event is intercepted by this class within an @try block an exception is thr