NSMutableArray result=new NSMutableArray(); if (eos.count()>0) { for (Enumeration e=eos.objectEnumerator(); e.hasMoreElements();) { EOEnterpriseObject target=(EOEnterpriseObject)e.nextElement(); NSDictionary pKey=EOUtilities.primaryKeyForObject(target.editingContext(),target); result.addObject(pKey.allValues().objectAtIndex(0)); } } return result;
return ERXEOAccessUtilities.primaryKeysForObjects(eos);
    public static NSArray primaryKeysForObjectsFromSameEntity(NSArray eos) {        NSMutableArray result=new NSMutableArray();        if (eos.count()>0) {            for (Enumeration e=eos.objectEnumerator(); e.hasMoreElements();) {                EOEnterpriseObject target=(EOEnterpriseObject)e.nextElement();                NSDictionary pKey=EOUtilities.primaryKeyForObject(target.editingContext(),target);                result.addObject(pKey.allValues().objectAtIndex(0));            }        }        return result;               }