MREditorKey Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying NSSecureCoding |
Declared in | MREditorKey.h |
Overview
MREditorKey represents a globally-unique identifier to an object created in the Meridian Editor. Objects created in the Editor can have multiple identifier components and this class helps locate an object based on the various components needed.
Here’s an example: A Meridian “Placemark” has an identifier, but it is only unique to the parent Map containing it. The Map also has an identifier, but it is only unique to the parent App containing it. The App has its own identifier, which is globally unique, and so that is the root key with a ‘nil’ parent.
Putting it all together:
placemarkKey.identifier = Placemark ID placemarkKey.parent.identifier = Map ID placemarkKey.parent.parent.identifier = App ID
identifier
The string identifier of this object.
@property (nonatomic, readonly, copy) NSString *identifier
Declared In
MREditorKey.h
parent
A key representing the parent of this object. May be nil.
@property (nullable, nonatomic, readonly, copy) MREditorKey *parent
Declared In
MREditorKey.h
+ keyWithIdentifier:
Creates and returns a key with the provided identifier.
+ (MREditorKey *)keyWithIdentifier:(NSString *)identifier
Parameters
identifier |
A string that uniquely identifies this object. |
---|
Declared In
MREditorKey.h
+ keyWithIdentifier:parent:
Creates and returns a key with the provided identifier and parent.
+ (MREditorKey *)keyWithIdentifier:(NSString *)identifier parent:(MREditorKey *)parent
Parameters
identifier |
A string that uniquely identifies this object. |
---|---|
parent |
A key that identifies the parent of this object. |
Declared In
MREditorKey.h