Nimbus
0.9.3 - Nimbus is proudly hosted on Github
An iOS framework whose growth is bounded by O(documentation).
|
An Objective-C wrapper for the flex CSS parser.
Generates a dictionary of raw CSS rules from a given CSS file.
It is recommended that you do NOT use this object directly. Use NIStylesheet instead.
Terminology note: CSS selectors are referred to as "scopes" to avoid confusion with Objective-C selectors.
This object is not thread-safe.
Definition at line 38 of file NICSSParser.h.
Methods | |
BOOL | didFailToParse property |
(NSDictionary *) | - dictionaryForPath:pathPrefix:delegate: |
(NSDictionary *) | - dictionaryForPath:pathPrefix: |
(NSDictionary *) | - dictionaryForPath: |
- NICSSParser: [read, assign] |
Will be YES after retrieving a dictionary if the parser failed to parse the file in any way.
Definition at line 72 of file NICSSParser.h.
- NICSSParser: | (NSString *) | path | |
pathPrefix: | (NSString *) | pathPrefix | |
delegate: | (id<NICSSParserDelegate>) | delegate | |
Reads a CSS file from a given path and returns a dictionary of raw CSS rule sets.
If a pathPrefix is provided then all paths will be prefixed with this value.
For example, if a path prefix of "/bundle/css" is given and a CSS file has the statement "@import url('user/profile.css')", the loaded file will be "/bundle/css/user/profile.css".
path | The path of the file to be read. |
pathPrefix | [optional] A prefix path that will be prepended to the given path as well as any imported files. |
delegate | [optional] A delegate that can reprocess paths. |
- NICSSParser: | (NSString *) | path |