Exemplo n.º 1
0
 public WOActionResults delete() {
   NSMutableArray personList = (NSMutableArray) session().valueForKey("personList");
   if (personList != null && personList.count() > 0) {
     for (int i = 0; i < personList.count(); i++) {
       PersonLink pers = (PersonLink) personList.objectAtIndex(i);
       if (item == EOUtilities.localInstanceOfObject(ec, pers.person())) {
         personList.removeObjectAtIndex(i);
         break;
       }
     }
   }
   return context().page();
   //		onEdit = null;
 }
Exemplo n.º 2
0
 public static NSArray getNextColor() {
   initColors();
   NSArray theColor = (NSArray) theColors.objectAtIndex(0);
   theColors.removeObjectAtIndex(0);
   return theColor;
 }