Inherits from NSObject
Conforms to PXMediaExpression
Declared in PXMediaGroup.h

Tasks

  •   origin

    A PXStylesheetOrigin enumeration value indicating the origin of this stylesheet. Origin values are used in specificity calculations.

    property
  •   query

    The media query associated with this grouping of rule sets

    property
  •   ruleSets

    A nonmutable array of rule sets that are contained within this stylesheet

    property
  • – initWithQuery:origin:

    Initialize a newly allocated instance

  • – addRuleSet:

    Add a new rule set to this stylesheet

  • – ruleSetsForStyleable:

    Return a list of rule sets that could apply to the given styleable

Properties

origin

A PXStylesheetOrigin enumeration value indicating the origin of this stylesheet. Origin values are used in specificity calculations.

@property (readonly, nonatomic) PXStylesheetOrigin origin

Discussion

A PXStylesheetOrigin enumeration value indicating the origin of this stylesheet. Origin values are used in specificity calculations.

Declared In

PXMediaGroup.h

query

The media query associated with this grouping of rule sets

@property (readonly, nonatomic) id<PXMediaExpression> query

Discussion

The media query associated with this grouping of rule sets

Declared In

PXMediaGroup.h

ruleSets

A nonmutable array of rule sets that are contained within this stylesheet

@property (readonly, nonatomic, strong) NSArray *ruleSets

Discussion

A nonmutable array of rule sets that are contained within this stylesheet

Declared In

PXMediaGroup.h

Instance Methods

addRuleSet:

Add a new rule set to this stylesheet

- (void)addRuleSet:(PXRuleSet *)ruleSet

Parameters

ruleSet

The rule set to add. Nil values are ignored

Discussion

Add a new rule set to this stylesheet

Declared In

PXMediaGroup.h

initWithQuery:origin:

Initialize a newly allocated instance

- (id)initWithQuery:(id<PXMediaExpression>)query origin:(PXStylesheetOrigin)origin

Parameters

query

The media query for this group

origin

The stylesheet origin for this group

Discussion

Initialize a newly allocated instance

Declared In

PXMediaGroup.h

ruleSetsForStyleable:

Return a list of rule sets that could apply to the given styleable

- (NSArray *)ruleSetsForStyleable:(id<PXStyleable>)styleable

Parameters

styleable

The element to match

Discussion

Return a list of rule sets that could apply to the given styleable

Declared In

PXMediaGroup.h