Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple value in fetchspec's qualifier



Hi,

I got a fetchspec in EOModel that has a qualifier (usercode = 
$usercode), i placed the desired usercode into my NSMutableDictionary 
and
call 
EOFetchSpecification.fetchSpecificationNamed("fetchByCode","user"); in 
order to have a fetch spec that complete this statement,
for example usercode = 1

If i would like to fetch usercode 1,2,3 how can i assign all these 
value to my NSMutableDictionary? I tried to use NSArray inside
the dictionary but failed. And ultimately, what i need is a fetch spec 
that returns values based on my qualifiers(with an array of value).


Another question, I got this table called "book" with to many 
relationship to another table called "author",
which means i got something like book.authorinvolve() which is an 
NSArray. I got problem when trying to specify
the qualifier in my fetch spec(i tried to fetch all books that this 
particular author involved), and i believe is
because of the to many relationship. What i tried to do is :

relationship.authorname= $name

where 1 book record can have many author record. How can i go around 
this problem? Thanks.


KB
_______________________________________________
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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.