• 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: convert string to object? [OT]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: java.lang.OutOfMemoryError during downloads
  • Next by Date: adding e-commerce to project
  • Previous by thread: Re: Getting programmatic access to EOTABLE (JTable) in NonDirect2JC...
  • Next by thread: adding e-commerce to project
  • Index(es):
    • Date
    • Thread