Re: WORepetition
Re: WORepetition
- Subject: Re: WORepetition
- From: Jonathan Rochkind <email@hidden>
- Date: Thu, 11 Sep 2003 17:28:08 -0500
There are several ways you could do it, but they are all 'programmatic' to
one degree or another.
Another way you could do it: Don't bind 'list' and 'item'. Bind 'count'
and 'index' instead. Bind 'count' to array.count(). Bind index to some int
variable. In the set method for index, manually set a variable that would
be like an 'item', but isn't actually bound to 'item'.
public void setIndex(int index) {
item = array.objectAtIndex( array.count() - index );
}
I might have my arithmatic wrong, you probably need a +1 or -1 in there
somewhere, but you get the idea.
--Jonathan
At 05:57 PM 9/11/2003 -0400, email@hidden wrote:
When we bind an NSMutable array to the list attribute of a WORepetition
object, it
repeats all elements of the array from index 0 to the last. Is there
anyway we could reverse this
other than doing it programmatically? ( At the end of the action event, we
could ofcourse just reverse
the elements of the array by swapping the extreme indeces first and then
converging at the middle )
Thanks,
Raj
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.