25 var _CPCibConnectorSourceKey =
@"_CPCibConnectorSourceKey",
26 _CPCibConnectorDestinationKey =
@"_CPCibConnectorDestinationKey",
27 _CPCibConnectorLabelKey =
@"_CPCibConnectorLabelKey";
36 - (void)replaceObject:(
id)anObject withObject:(
id)anotherObject
38 if (_source === anObject)
39 _source = anotherObject;
41 if (_destination === anObject)
42 _destination = anotherObject;
45 - (void)replaceObjects:(Object)replacementObjects
47 var replacement = replacementObjects[[_source UID]];
49 if (replacement !== undefined)
50 _source = replacement;
52 replacement = replacementObjects[[_destination UID]];
54 if (replacement !== undefined)
55 _destination = replacement;
68 _source = [aCoder decodeObjectForKey:_CPCibConnectorSourceKey];
69 _destination = [aCoder decodeObjectForKey:_CPCibConnectorDestinationKey];
70 _label = [aCoder decodeObjectForKey:_CPCibConnectorLabelKey];
78 [aCoder encodeObject:_source forKey:_CPCibConnectorSourceKey];
79 [aCoder encodeObject:_destination forKey:_CPCibConnectorDestinationKey];
80 [aCoder encodeObject:_label forKey:_CPCibConnectorLabelKey];
105 - (void)setSource:(
id)aValue
121 - (void)setDestination:(
id)aValue
123 _destination = aValue;
An immutable string (collection of characters).
Defines methods for use when archiving & restoring (enc/decoding).