On 2011-07-13, at 3:19 PM, Steve Peery wrote: > Does anybody talk code on this list anymore ;-)
No, but there might be a committee for that. :-P > I have an array of EO objects and I want to fetch an array with all EO > objects that are not in the array. > If I were using SQL, it would look something like this: > > SELECT oid FROM MyEOObject WHERE oid != 1 AND oid != 3 AND oid != 5; > > I can do it using EOQualifier.qualifierWithQualifierFormat and a format > string or I can fetch them all and make the array by comparing them. Is there > a better way? Using Wonder, right? Right? See the classes in package er.extensions.eof.qualifiers. Specifically ERXInQualifier, ERXPrimaryKeyListQualifier, and ERXQualifierInSubquery. Along with the standard EONotQualifier. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
