Nova Patents
CA2817890C

Event recognition

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.

CA2817890C, drawing sheet 1
Sheet 1 of 14

Term

3.5 yearsleft in the term

Expires 12 March 2030.

  1. Priority
  2. Filed
  3. Granted
  4. Today
  5. Expires

30 claims: 6 independent, 24 dependent

  1. 1
    CA 02817890 2014-10-21 The embodiments of the invention in which an exclusive property or privilege is claimed are defined as follows: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 that includes one or more event recognizers;detecting a sequence of one or more sub-events;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;and delivering a respective sub-event to event recognizers for multiple actively involved views within the view hierarchy, wherein each event recognizer for the multiple 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;and wherein at least one event recognizer for the multiple actively involved views in the view hierarchy is adapted to defer recognizing an event corresponding to the sequence of one or more sub-events until each event recognizer in a predefined set of one or more other event recognizers has determined that it does not recognize the event corresponding to the sequence of sub-events.
  2. 21
    A method, comprising:CA 02817890 2014-10-21 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;detecting a sequence of one or more sub-events;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 multiple actively involved views within the view hierarchy;and at event recognizers for the multiple actively involved views in the view hierarchy, making a sub-event recognition decision while processing the respective subevent;wherein at least one event recognizer for the multiple actively involved views in the view hierarchy is adapted to defer recognizing an event corresponding to the sequence of one or more sub-events until each event recognizer in a predefined set of one or more other event recognizers has determined that it does not recognize the event corresponding to the sequence of sub-events.
  3. 23
    A non-transitory 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 that includes one or more event recognizers;and 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: CA 02817890 2014-10-21 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 multiple actively involved view within the view hierarchy, wherein each event recognizer for the multiple actively involved views in the view hierarchy processes the respective sub-event prior to processing a next subevent in the sequence of sub-events;and wherein at least one event recognizer for the multiple actively involved views in the view hierarchy is adapted to defer recognizing an event corresponding to the sequence of one or more sub-events until each event recognizer in a predefined set of one or more other event recognizers has determined that it does not recognize the event corresponding to the sequence of sub-events.
  4. 24
    An apparatus, comprising:a display;one or more processors;and memory storing: one or more programs for displaying 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 that includes one or more event recognizers;and an event delivery program, which, when executed by the one or more processors of the apparatus, causes 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 multiple actively involved view within the view hierarchy;and make a sub-event recognition decision while event recognizers for the multiple actively involved views in the view hierarchy process the respective subevent;CA 02817890 2014-10-21 wherein at least one event recognizer for the multiple actively involved views in the view hierarchy is adapted to defer recognizing an event corresponding to the sequence of one or more sub-events until each event recognizer in a predefined set of one or more other event recognizers has determined that it does not recognize the event corresponding to the sequence of sub-events.
  5. 27
    An electronic device, comprising:a display;one or more processors;and memory storing one or more programs for execution by the one or more processors, the one or more programs including instructions for: displaying one or more views of a view hierarchy with a plurality of views;executing one or more software elements, each software element being associated with a particular view that includes one or more event recognizers;detecting a sequence of one or more sub-events;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;and delivering a respective sub-event to event recognizers for multiple actively involved views within the view hierarchy, wherein each event recognizer for the multiple 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;and wherein at least one event recognizer for the multiple actively involved views in the view hierarchy is adapted to defer recognizing an event corresponding to the CA 02817890 2014-10-21 sequence of one or more sub-events until each event recognizer in a predefined set of one or more other event recognizers has determined that it does not recognize the event corresponding to the sequence of sub-events.
  6. 29
    A non-transitory 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 instructions for:displaying one or more views of a view hierarchy with a plurality of views;executing one or more software elements, each software element being associated with a particular view that includes one or more event recognizers;detecting a sequence of one or more sub-events;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;and delivering a respective sub-event to event recognizers for multiple actively involved views within the view hierarchy, wherein each event recognizer for the multiple 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;and wherein at least one event recognizer for the multiple actively involved views in the view hierarchy is adapted to defer recognizing an event corresponding to the sequence of one or more sub-events until each event recognizer in a predefined set of one or more other event recognizers has determined that it does not recognize the event corresponding to the sequence of sub-events.