Re: convert string to object? [OT]
Re: convert string to object? [OT]
- Subject: Re: convert string to object? [OT]
- From: Sam Hart <email@hidden>
- Date: Tue, 2 Dec 2003 10:03:36 +0000
Chris wrote:
A few tips from the Coding Style Police.
<snip>
instead of
values.objectForKey("DEPARTMENT_NAME") I'd use
values.valueForKey("departmentName") and adjust the rest of my code to
match.
better yet, have a static String called departmentName with the value
"departmentName"
that way if you mistype it the compiler will pick up on it, and you can
also change the value without breaking the codebase.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.