// ** serious problem here. Raise an exception?
}
}
// dt: this can be used with a subset as array for the checkboxes.
if (relationshipName() != null && relationshipName().length() > 0 && relationshipOwner() != null) {
NSSet objectsToRemove = new NSSet(_selections).setBySubtractingSet(new NSSet(aSelectionsArray));
NSSet objectsToAdd = new NSSet(aSelectionsArray).setBySubtractingSet(new NSSet(_selections));
EOEnterpriseObject owner = relationshipOwner();
String relname = relationshipName();
for (Enumeration e = objectsToRemove.objectEnumerator(); e.hasMoreElements();) {
EOEnterpriseObject eo = (EOEnterpriseObject)e.nextElement();
owner.removeObjectFromBothSidesOfRelationshipWithKey(eo, relname);
}
for (Enumeration e = objectsToAdd.objectEnumerator(); e.hasMoreElements();) {
EOEnterpriseObject eo = (EOEnterpriseObject)e.nextElement();
owner.addObjectToBothSidesOfRelationshipWithKey(eo, relname);
}
} else {