Thanks Chuck & Pierre,

< NSKeyValueCoding.NullValue> is the winning ticket, as in:

if ( curArea != null ) groups.queryBindings().setObjectForKey ( curArea.areaID(), "areaID"); else groups.queryBindings().setObjectForKey ( EOKeyValueCoding.NullValue, "areaID"); if ( curState != null ) groups.queryBindings().setObjectForKey ( curState.stateID(), "stateID"); else groups.queryBindings().setObjectForKey ( EOKeyValueCoding.NullValue, "stateID"); if ( curRegion != null ) groups.queryBindings().setObjectForKey ( curRegion.regionID(), "regionID"); else groups.queryBindings().setObjectForKey ( EOKeyValueCoding.NullValue, "regionID");

On Dec 7, 2006, at 9:46 AM, Chuck Hill wrote:

On Dec 7, 2006, at 9:32 AM, Baiss Eric Magnusson wrote:

Wouldn't the following fetch the record if I don't set any value for the 3 <$> variables, and the record in the DB has <null> for the 3 fields?

        ((areaID = $areaID) or (stateID = $stateID) or (groupID = $groupID)
                         or ((areaID = stateID) and (areaID = groupID)))

----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>

_______________________________________________
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]

Reply via email to