Re: Core Data/Cocoa Bindings: best practice for using strings in code?
Re: Core Data/Cocoa Bindings: best practice for using strings in code?
- Subject: Re: Core Data/Cocoa Bindings: best practice for using strings in code?
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 13 Jul 2005 13:55:44 -0700
On Jul 13, 2005, at 1:43 PM, Michael McCracken wrote:
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.
Many developers define string constants for the keys.
You can also implement custom classes with specific accessor methods.
mmalc
_______________________________________________
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