• 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
Core Data/Cocoa Bindings: best practice for using strings in code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data/Cocoa Bindings: best practice for using strings in code?


  • Subject: Core Data/Cocoa Bindings: best practice for using strings in code?
  • From: Michael McCracken <email@hidden>
  • Date: Wed, 13 Jul 2005 13:43:27 -0700

Hi, using Core Data and Cocoa Bindings, I find that my code is lousy
with string constants for things like entity names and key paths. I've
already had one typo that wasn't immediately obvious, and that's
enough. I'm thinking about solving this by defining them all as cpp
macros, but that seems like a maintenance headache (although still an
improvement) as I experiment with the data model.

What have other developers found to be useful to enforce sanity here?

Thanks,
-mike
--
Michael McCracken
UCSD CSE PhD Candidate
http://www.cse.ucsd.edu/~mmccrack/
 _______________________________________________
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: Core Data/Cocoa Bindings: best practice for using strings in code?
      • From: Óscar Morales Vivó <email@hidden>
    • Re: Core Data/Cocoa Bindings: best practice for using strings in code?
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: C string conversions?
  • Next by Date: Re: C string conversions?
  • Previous by thread: Re: C string conversions?
  • Next by thread: Re: Core Data/Cocoa Bindings: best practice for using strings in code?
  • Index(es):
    • Date
    • Thread