Re: index of WODisplayGroup.displayedObjects() array
Re: index of WODisplayGroup.displayedObjects() array
- Subject: Re: index of WODisplayGroup.displayedObjects() array
- From: George Domurot <email@hidden>
- Date: Sun, 9 Nov 2003 19:39:42 -0500
Hmmm... I use this code all over the place under the same situation
that you've mentioned. Check the value of tbCategory just prior to
...indexOfObject(tbCategory). Also, double check that your WORepitition
is bound to displayedObjects(). I'm pretty sure this is a binding
issue. If you are binding the repetition to displayedObjects and are
asking for the index of object bound to item, you should be fine.
-G
On Nov 9, 2003, at 7:13 PM, Jonathan Fleming wrote:
From: George Domurot <email@hidden>
To: "Jonathan Fleming" <email@hidden>
CC: email@hidden, email@hidden
Subject: Re: index of WODisplayGroup.displayedObjects() array
Date: Sun, 9 Nov 2003 16:46:23 -0500
Jonathan, you may want to try something like:
displayGroup.displayedObjects().indexOfObject(anObject)
Tried that and it hasn't worked or I have configured it wrongly. The
object i used was the item bound to the item binding of the WOTable /
WORepitition such as:
tbCategoryDisplayGroup.displayedObjects().indexOfObject(tbCategory),
this give me an output of -1 so what am I doning wrong here?
Regards
Jonathan :^)
On Nov 9, 2003, at 2:25 PM, Jonathan Fleming wrote:
> How can I get the index that an object is at in a
> WODisplayGroup.displayedObjects() array?
> Using the index of a WORepitition or WOTable in my case does not
seem
> to work it gives me an out of bounds error.
>
> TIA
> Jonathan :^)
>
> _________________________________________________________________
> Stay in touch with absent friends - get MSN Messenger
> http://www.msn.co.uk/messenger
> _______________________________________________
> 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.
_________________________________________________________________
Hotmail messages direct to your mobile phone
http://www.msn.co.uk/msnmobile
_______________________________________________
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.