• 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: Marek Wawrzyczny <email@hidden>
  • Date: Fri, 12 Sep 2003 09:36:59 +1000

Or you could resort the NSMutableArray to reverse its order and use WORepetition like you used to :)


On Friday, Sep 12, 2003, at 08:28 Australia/Sydney, 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.




Marek Wawrzyczny

software engineer
-------------------------->
ish group pty ltd
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400   fax +61 2 9660 7400
http www.ish.com.au | email email@hidden
_______________________________________________
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.

  • Prev by Date: Re: WORepetition
  • Next by Date: Re: WORepetition
  • Previous by thread: Re: WORepetition
  • Next by thread: Having trouble with fetching on date
  • Index(es):
    • Date
    • Thread