iPhone Development – Careful of using the reserved word id

One of the most common variable names for a model class must be id. Particularly with database driven apps or those that connect to external data sources, id is the lifeblood of an object, your one way of knowing which object you’re talking about. Unfortunately in Objective C it will cause you all sorts of problems using id, which you probably won’t see until runtime. I’ve taken to using myid, although it is fairly ugly.

One response to “iPhone Development – Careful of using the reserved word id”

  1. Alexander7 says:

    Need cheap generic LEVITRA?…

Leave a Reply

Your email address will not be published. Required fields are marked *