In code, you can use EOKeyValueQualifier with a value of NSKeyValueCoding.NullValue which is a substitute for null where null cannot be used in Apple's frameworks.

On Jun 5, 2007, at 5:13 PM, Ted Archibald wrote:

Is there a more elegant way of trying to fetch null objects?

Currently I have an object 'Posting' with a fetch spec 'fetchNullPostingForMonth' with the qualifier '(objectIDPostingsForMonth = nil)'

Then in my code I have:

NSArray results = EOUtilities.objectsWithFetchSpecificationAndBindings( ec, "Posting", "fetchNullPostingForMonth", null);

To me this seems crude, but it does work. Is there a better way though?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists% 40mac.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to