UIApplication sendEvent: is called with UIInternalEvent objects

Originator:martica
Number:rdar://11214051 Date Originated:09-Apr-2012 04:44 PM
Status:Open Resolved:
Product:iPad SDK Product Version:5.1
Classification:UI/Usability Reproducible:Always
 
Summary:

The class reference for -[UIApplication sendEvent:] says:

"Subclasses may override this method to intercept incoming events for inspection and special dispatching. iOS calls this method for public events only."

This is great, but the second sentence is not really true. There are events that are sent to this method that are not truly public with the class UIInternalEvent. There is no documentation on how to inspect or dispatch these events.

Steps to Reproduce:

Subclass UIApplication and override sendEvent: with an NSLog and a call to the superclass's sendEvent:.

Expected Results:

A stream of events with all sorts of nice details for inspection and special dispatch.

Actual Results:

A stream of events, some of which are opaque UIInternalEvent objects which cannot be inspected or dispatched other than passing unaltered to the superclass;

Regression:

Notes:

Unless I don't understand what is meant by "public events", I would assume that any event arriving at sendEvent: can be inspected and used as the developer sees fit.

I would like a way to inspect the contents of these UIInternalEvents, or have that opaque class replaced with a well defined and documented event class that we can inspect.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!