public static void invalidateObjects(EOEditingContext ec, NSArray list) { NSMutableArray listGIDs = new NSMutableArray(); for (int i = 0; i < list.count(); i++) { listGIDs.addObject(ec.globalIDForObject((EOEnterpriseObject) list.objectAtIndex(i))); } ec.invalidateObjectsWithGlobalIDs(listGIDs); }
/** invalide l'object record passe en parametre */ public static void invalidateObject(EOEditingContext ec, EOGenericRecord record) { NSArray listGIDs = new NSArray(new Object[] {ec.globalIDForObject(record)}); ec.invalidateObjectsWithGlobalIDs(listGIDs); }