• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: nil in NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nil in NSArray


  • Subject: Re: nil in NSArray
  • From: Mike Schrag <email@hidden>
  • Date: Sat, 13 Dec 2008 22:33:03 -0500

For example, in WO, if you're using an NSDictionary "bindings" for query bindings, you might want to query for some attribute "myAttribute" that equals NULL in your database, so you would do something like bindings.setObjectForKey(NSKeyValueCoding.NullValue, "myAttribute"). So when EOF is constructing the qualifier, it knows that it should produce "WHERE my_attribute = NULL", but that when bindings.objectForKey("myOtherAttribute") is null (as in a null pointer), it knows that's not an attribute you want to qualify on.
This is definitely a valid scenario, but it seems like more an argument for the existence of NSNull (which I'm not really against, only as a hack around the lack of null-in-collection support) and less for why you can't add a real null as value. It doesn't seem like those two capabilities would be mutually exclusive.

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: nil in NSArray
      • From: Clark Mueller <email@hidden>
References: 
 >nil in NSArray (From: Mike Schrag <email@hidden>)
 >Re: nil in NSArray (From: Clark Mueller <email@hidden>)
 >Re: nil in NSArray (From: Mike Schrag <email@hidden>)
 >Re: nil in NSArray (From: Clark Mueller <email@hidden>)

  • Prev by Date: Re: nil in NSArray
  • Next by Date: Re: nil in NSArray
  • Previous by thread: Re: nil in NSArray
  • Next by thread: Re: nil in NSArray
  • Index(es):
    • Date
    • Thread