• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WORepetition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WORepetition


  • Subject: Re: WORepetition
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 11 Sep 2003 15:33:03 -0700

Or, in a fit of perversity, you could just not sort it backwards to begin
with.  :-)

Chuck


At 05:28 PM 11/09/2003 -0500, Jonathan Rochkind wrote:
>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.
>

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
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.

  • Follow-Ups:
    • Re: WORepetition
      • From: email@hidden (Anjo Krank)
  • Prev by Date: Re: WORepetition
  • Next by Date: Re: WORepetition
  • Previous by thread: Re: WORepetition
  • Next by thread: Re: WORepetition
  • Index(es):
    • Date
    • Thread