• 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: String Literals and KVC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String Literals and KVC


  • Subject: Re: String Literals and KVC
  • From: Nir Soffer <email@hidden>
  • Date: Sun, 11 Jun 2006 15:39:00 +0300


On 11/06/2006, at 14:58, Sanjay Samani wrote:

- Without syntax highlighting of strings, I actually personally find the code to be less readable with string contsntants.

True.


- Also the string constants names have to be name space clean, I end up with silly names like XYMyVariableKey which is even less readable.

True.

- KVC keys are quite easy to debug cos you simply get a runtime error saying xyz object is not KVC compliant for key: garbledKey, so you don't get some of the issues you get with other string literals

But with string constants you get *compile time* error.


Best Regards,

Nir Soffer

_______________________________________________
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


References: 
 >String Literals and KVC (From: Sanjay Samani <email@hidden>)

  • Prev by Date: String Literals and KVC
  • Next by Date: Using NSClassFromString with a Custom Class
  • Previous by thread: String Literals and KVC
  • Next by thread: Using NSClassFromString with a Custom Class
  • Index(es):
    • Date
    • Thread