title: creating a model class with an image
body: <p>Is there an efficient way to load an image into a model class?  The model is something like this:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  @interface ProjectData : NSObject {
  
  NSString *titleText;
  UIImage *photo;
  NSString *descriptionText;
  
  }
  
  @property (nonatomic,retain) NSString *titleText;
  @property (nonatomic,retain) UIImage *photo;
  @property (nonatomic,retain) NSString *descriptionText;
  @end
  </code></pre>
  
  <p>Project is something like a catalog.</p>
  
  <p>I have been loading the strings from webserver using XML from mySQL database.  Images are on database. Not quite sure how to proceed with image loading into ProjectData class. NSMutableData? or is there an easier way?</p>
  
  <p>Thanks.</p>