Inherits from NSObject
Conforms to NSCoding
NSCopying
Declared in GSClass.h

Overview

The class represents the OpenType classes

Properties

automatic

if the class is replaced on automatic feature generation.

@property (nonatomic) BOOL automatic

canBeAutomated

of the featureGenerator can generate the class

@property (nonatomic, readonly) BOOL canBeAutomated

code

The content of the class

@property (strong, nonatomic) NSString *code

Discussion

Normally glyph names seperated my spaces.

disabled

If True, the feature will not be exported.

@property (nonatomic) BOOL disabled

name

The name of the class

@property (nonatomic, copy) NSString *name

notes

Some notes for the class.

@property (nonatomic, strong) NSString *notes

parent

a reference to the font contaning the class

@property (nonatomic, unsafe_unretained) GSFont *parent

tempData

a dictionary that stores data. It will not be written to disk.

@property (nonatomic, strong, nullable) NSDictionary *tempData

Instance Methods

propertyListValueFormat:

Returns the content of the object to store it in pList.

- (NSDictionary *)propertyListValueFormat:(GSFormatVersion)format

Parameters

format

the version of the dict

Discussion

This is used to store the data in the .glyphs file.

setTempData:forKey:

Adds key/value to tempData. Pass nil as value to remove previous set data

- (void)setTempData:(nullable id)value forKey:(nonnull NSString *)key

Parameters

value

and object or nil

key

the key

tempDataForKey:

return value for key in tempData

- (nullable id)tempDataForKey:(nonnull NSString *)key

Parameters

key

the key

Return Value

a value or nil

update

Triggers the regeneration of the class.

- (void)update