# Methods

`-addRule`
  adds a rule for a certain event
`-addRule:forEvent:`
  adds a rule for a certain event

### addRule

adds a rule for a certain event

See Also:

> addRule:forEvent:

>     - addRule: (id <ECXMLControlRule>) newRule forEvent: (id) anEvent;

##### Parameter Descriptions

> `newRule`
>   corresponding rule
> `anEvent`
>   one of the fields "event_XXX" (see ``

method result
  self

### addRule:forEvent:

adds a rule for a certain event

See Also:

> addRule

>     - addRule: (id <ECXMLControlRule>) newRule forEvent: (id) anEvent;

##### Parameter Descriptions

> `newRule`
>   corresponding rule
> `anEvent`
>   one of the fields "event_XXX" (see ``

(Last Updated August 27, 2006)