Re: Fetching data into an Array

2007-10-25 Thread Ken Anderson
use obj.valueForKey("relationshipName") On Oct 25, 2007, at 1:20 PM, Calven Eggert wrote: I'm using EOEnterpriseObject and so .toManyRelationship() would not work unless I had a class for my currentRecord. ___ Do not post admin requests to th

Re: Fetching data into an Array

2007-10-25 Thread Calven Eggert
On 25-Oct-07, at 1:15 PM, Chuck Hill wrote: On Oct 24, 2007, at 8:32 PM, Calven Eggert wrote: On 24-Oct-07, at 8:50 PM, Chuck Hill wrote: On Oct 24, 2007, at 11:58 AM, Calven Eggert wrote: I was fetching a list of records from a to-many relationship and none of the records were being dis

Re: Fetching data into an Array

2007-10-25 Thread Chuck Hill
I don't think that WORepetition uses iterator() so this should not be the problem. Chuck On Oct 24, 2007, at 10:09 PM, Sam Barnum wrote: There's a bug in NSArray (actually one of the subclasses) where if you call iterator() it doesn't fire the fault. So the iterator is empty. If you use

Re: Fetching data into an Array

2007-10-25 Thread Chuck Hill
On Oct 24, 2007, at 8:32 PM, Calven Eggert wrote: On 24-Oct-07, at 8:50 PM, Chuck Hill wrote: On Oct 24, 2007, at 11:58 AM, Calven Eggert wrote: I was fetching a list of records from a to-many relationship and none of the records were being displayed in my WORepetition. My fetch is a sim

Re: Fetching data into an Array

2007-10-24 Thread Sam Barnum
There's a bug in NSArray (actually one of the subclasses) where if you call iterator() it doesn't fire the fault. So the iterator is empty. If you use the enumerator or call count() first, it does fire the fault. I'd bet that's what is happening in this case. -- Sam Barnum 360 Works ht

Re: Fetching data into an Array

2007-10-24 Thread Calven Eggert
On 24-Oct-07, at 8:50 PM, Chuck Hill wrote: On Oct 24, 2007, at 11:58 AM, Calven Eggert wrote: I was fetching a list of records from a to-many relationship and none of the records were being displayed in my WORepetition. My fetch is a simple valueForKey like so: NSMutableArray toM

Re: Fetching data into an Array

2007-10-24 Thread Chuck Hill
On Oct 24, 2007, at 11:58 AM, Calven Eggert wrote: I was fetching a list of records from a to-many relationship and none of the records were being displayed in my WORepetition. My fetch is a simple valueForKey like so: NSMutableArray toManyArray = (NSMutableArray) currentRecord.va

Fetching data into an Array

2007-10-24 Thread Calven Eggert
I was fetching a list of records from a to-many relationship and none of the records were being displayed in my WORepetition. My fetch is a simple valueForKey like so: NSMutableArray toManyArray = (NSMutableArray) currentRecord.valueForKey("toManyRelationship"); Then I tried this f