• 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
Empty NSStrings, nil NSStrings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Empty NSStrings, nil NSStrings


  • Subject: Empty NSStrings, nil NSStrings
  • From: Paolo Bertani <email@hidden>
  • Date: Sun, 16 Apr 2006 13:01:32 +0200

Hi,
I'm a bit confused about working with NSStrings that may be empty and/or nil.


From a "Cocoa" point of view a nil NSString and an empty NSString (a valid NSString instance containing 0 characters) can/should be considered interchangeable?

Or should I check every NSString and, if nil, turn it into an empty NSString before working with it (messaging or passing as parameter)?


Sorry for the very basic question...


Thank you, Paolo.



"<Ai sensi e per gli effetti del D.Lgs. n.° 196/2003 (Codice della Privacy) si precisa che questo messaggio, ed eventuali relativi allegati, è strettamente riservato ai destinatari in indirizzo, con espressa  diffida di conservazione, uso, copiatura o divulgazione.
Chiunque lo riceva, non essendone destinatario, è pregato di avvertire lo scrivente e di provvedere alla distruzione di quanto erroneamente pervenuto>"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Empty NSStrings, nil NSStrings
      • From: Ali Ozer <email@hidden>
    • Re: Empty NSStrings, nil NSStrings
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Open System Preferences?
  • Next by Date: Re: Empty NSStrings, nil NSStrings
  • Previous by thread: New windows and accepting input...
  • Next by thread: Re: Empty NSStrings, nil NSStrings
  • Index(es):
    • Date
    • Thread