Event Recognition
First Claim
1. A method, comprising:
- at an electronic device configured to execute software that includes a view hierarchy with a plurality of views;
displaying one or more views of the view hierarchy;
executing one or more software elements, each software element being associated with a particular view, wherein each particular view includes one or more event recognizers, each event recognizer having;
an event definition based on one or more sub-events, andan event handler, wherein the event handler;
specifies an action for a target, andis configured to send the action to the target in response to the event recognizer detecting an event corresponding to the event definition;
detecting a sequence of one or more sub-events; and
identifying one of the views of the view hierarchy as a hit view, wherein the hit view establishes which views in the view hierarchy are actively involved views;
delivering a respective sub-event to event recognizers for each actively involved view within the view hierarchy,wherein each event recognizer for actively involved views in the view hierarchy processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events.
1 Assignment
0 Petitions
Accused Products
Abstract
A method executes software including a view hierarchy with a plurality of views which displays one or more views of the view hierarchy. The method executes software elements associated with a particular view, wherein each particular view includes event recognizers. Each event recognizer has an event definition based on sub-events, and an event handler that specifies an action for a target, and is configured to send the action to the target in response to an event recognition. The method detects a sequence of sub-events, and identifies one of the views of the view hierarchy as a hit view that establishes which views in the hierarchy are actively involved views. The method delivers a respective sub-event to event recognizers for each actively involved view, wherein each event recognizer for actively involved views in the view hierarchy processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events.
-
Citations
25 Claims
-
1. A method, comprising:
-
at an electronic device configured to execute software that includes a view hierarchy with a plurality of views; displaying one or more views of the view hierarchy; executing one or more software elements, each software element being associated with a particular view, wherein each particular view includes one or more event recognizers, each event recognizer having; an event definition based on one or more sub-events, and an event handler, wherein the event handler; specifies an action for a target, and is configured to send the action to the target in response to the event recognizer detecting an event corresponding to the event definition; detecting a sequence of one or more sub-events; and identifying one of the views of the view hierarchy as a hit view, wherein the hit view establishes which views in the view hierarchy are actively involved views; delivering a respective sub-event to event recognizers for each actively involved view within the view hierarchy, wherein each event recognizer for actively involved views in the view hierarchy processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
-
-
22. A method, comprising:
-
at an electronic device configured to execute software that includes a view hierarchy with a plurality of views; displaying one or more views of the view hierarchy; executing one or more software elements, each software element being associated with a particular view, wherein each particular view includes one or more event recognizers, each event recognizer having; an event definition based on one or more sub-events, and an event handler, wherein the event handler; specifies an action for a target, and is configured to send the action to the target in response to the event recognizer detecting an event corresponding to the event definition; detecting a sequence of one or more sub-events; and identifying one of the views of the view hierarchy as a hit view, wherein the hit view establishes which views in the view hierarchy are actively involved views; delivering a respective sub-event to event recognizers for each actively involved view within the view hierarchy; and at event recognizers for the actively involved views in the view hierarchy, making a sub-event recognition decision while processing the respective sub-event. - View Dependent Claims (23)
-
-
24. A computer readable storage medium storing one or more programs for execution by one of more processors of a computer system or device, the one or more programs including:
-
one or more application programs for displaying one or more views of a view hierarchy with a plurality of views; the one or more application programs including one or more software elements, each software element being associated with a particular view, wherein each particular view includes one or more event recognizers, each event recognizer having; an event definition based on one or more sub-events, and an event handler, wherein the event handler; specifies an action for a target, and is configured to send the action to the target in response to the event recognizer detecting an event corresponding to the event definition; event management instructions, which when executed by the one or more processors of the computer system or device, cause the computer system or device to; detect a sequence of one or more sub-events; identify one of the views of the view hierarchy as a hit view, wherein the hit view establishes which views in the view hierarchy are actively involved views; and deliver a respective sub-event to event recognizers for each actively involved view within the view hierarchy, wherein each event recognizer for actively involved views in the view hierarchy processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events.
-
-
25. An apparatus, comprising:
-
a display; one or more processors; memory; one or more programs stored in the memory, which are configured to display one or more views of a view hierarchy with a plurality of views; the one or more programs including one or more software elements, each software element being associated with a particular view, wherein each particular view includes one or more event recognizers, each event recognizer having; an event definition based on one or more sub-events, and an event handler, wherein the event handler; specifies an action for a target, and is configured to send the action to the target in response to the event recognizer detecting an event corresponding to the event definition; an event delivery program, which, when executed by the one or more processors of the apparatus, cause the apparatus to; detect a sequence of one or more sub-events; identify one of the views of the view hierarchy as a hit view, wherein the hit view establishes which views in the view hierarchy are actively involved views; deliver a respective sub-event to event recognizers for each actively involved view within the view hierarchy; and make a sub-event recognition decision while event recognizers for the actively involved views in the view hierarchy process the respective sub-event.
-
Specification