[GSLayer layerDict] returning nil

At times, layerDict will return nothing at all despite the GSLayer object existing and it containing paths.

Is this property owned/generated by another object? Is there another way get the dictionary?

One note is that these GSLayers were created using initLayerWithDict: at some point.

edit: maybe helps to know that these layers were originally copy’d thin and are orphaned without a parent glyph.

That can happen if the layer has not associatedMasterId.

1 Like

Thanks Georg, that fixes it.