Core Data/Cocoa Bindings: best practice for using strings in code?
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