self->partNames = [[ps componentsSeparatedByString:@"\n"] retain];
ps = [self->item valueForKey:@"partstates"];
self->partStates = [[ps componentsSeparatedByString:@"\n"] retain];
- NSLog(@"new item:%@", self->item);
}
- (id)item {
return self->item;
}
- (void)setParticipantIndex:(unsigned)_participantIndex {
- NSLog(@"_participantIndex:%d", _participantIndex);
self->participantIndex = _participantIndex;
}
- (unsigned)participantIndex {
}
- (NSString *)participant {
- [self logWithFormat:@"participant(%d):%@",
- self->participantIndex,
- [self->partNames objectAtIndex:self->participantIndex]];
return [self->partNames objectAtIndex:self->participantIndex];
}
- (NSString *)participationStatus {
- [self logWithFormat:@"state(%d):%@",
- self->participantIndex,
- [self->partStates objectAtIndex:self->participantIndex]];
return [self->partStates objectAtIndex:self->participantIndex];
}
- (unsigned)maxRenderedParticipantsCount {
- return 2;
-}
-
-// TODO: find the bug in WORepetition and get rid of this!
-- (NSArray *)renderedParticipants {
- NSRange r;
-
- r = NSMakeRange(0, [self renderedParticipantsCount]);
- return [self->partNames subarrayWithRange:r];
-}
-- (void)setFoo:(id)_foo {
+ return 3;
}
- (unsigned)renderedParticipantsCount {
}
- (BOOL)didTruncateParticipants {
- return [self participantsCount] > [self maxRenderedParticipantsCount] ? YES
- : NO;
+ return [self participantsCount] >
+ ([self maxRenderedParticipantsCount] + 1) ? YES : NO;
}
cellspacing="0"
class="schedoverview"
>
- <var:foreach list="renderedParticipants"
+ <var:foreach count="renderedParticipantsCount"
index="participantIndex"
- item="foo"
>
<tr>
<td class="schedoverview">
cellspacing="2"
class="schedoverview"
>
- <var:foreach list="renderedParticipants"
+ <var:foreach count="renderedParticipantsCount"
index="participantIndex"
- item="foo"
>
<tr>
<td class="schedoverview">