• 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: how to test for NULL (or nil, or null)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to test for NULL (or nil, or null)


  • Subject: Re: how to test for NULL (or nil, or null)
  • From: Denis Stanton <email@hidden>
  • Date: Mon, 1 Mar 2004 12:04:19 +1300

Thanks again.

if ([myObject isEqual:[NSNull null]])

works, and looks better to me.

Denis

On Monday, March 1, 2004, at 11:47 AM, Pete Yandell wrote:

In fact, now that I think about it, you probably can do:

if ([myObject isEqual:[NSNull null]])

I'll leave it to you to decide which is better coding style. :)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: how to test for NULL (or nil, or null) (From: Pete Yandell <email@hidden>)

  • Prev by Date: Re: how to test for NULL (or nil, or null)
  • Next by Date: Re: Databasing and Cocoa
  • Previous by thread: Re: how to test for NULL (or nil, or null)
  • Next by thread: Re: how to test for NULL (or nil, or null)
  • Index(es):
    • Date
    • Thread