Inherits from GSElement : GSShape : NSObject
Conforms to NSCoding
NSCopying
Declared in GSHint.h

Properties

parentLayer

More specifically typed convenience getter for the generic parent property declared by GSShape.

@property (weak, nonatomic, nullable, readonly) GSLayer *parentLayer

tempData

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

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

Instance Methods

initWithDict:format:

initialises a element with a dictionary loaded from a pList.

- (instancetype)initWithDict:(NSDictionary *_Nonnull)hintDict format:(GSFormatVersion)formatVersion

Parameters

dict

The property list representation

formatVersion

the version of the property list

Return Value

a element object

Discussion

Inits with a dict.

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

typeNameUI

localised version of typeName

- (NSString *)typeNameUI