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: Mon, 10 Nov 2003 12:41:40 -0500
I want to make sure I understand this....
Your displayGroup contains an array of objects that are of type
NSDictionary.
Your WORepetition's list is bound to displayGroup.displayedObjects and
item is bound to tbCategory which is a NSDictionary.
Here's my guess, if tbCateogry is null, then either you do not have any
objects in displayGroup.displayedObjects and/or you are trying to test
the value prior to actually starting the repetition.
On Nov 9, 2003, at 8:33 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 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
I don't think the type that tbCategory will matter (NSDictionary), but
this is the value in my log:
tbCategory b4.indexOfObject(tbCategory) = null
I cant think right now why that is 'cause everything else works fine
and it's the early hours of the morning here so my brain is getting
numb.
Any ideas?
Jonathan :^)
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.
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
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.