title: NSString drawAtPoint text not showing up
body: <p>Inside my application I'm programmatically constructing a <code>NSImage</code> object that I set as the applications dock Icon. I want to add some text to the icon and have been attempting to use <code>NSString drawAtPoint: withAttributes</code> but it doesn't seem to be working. I've confirmed using log messages that the string is getting constructed properly.</p>
  
  <p>I can't seem to figure out what I'm missing, doing wrong. Any help would be greatly appreciated.</p>
  
  <p>Here is the function I've written to draw to the <code>NSImage</code></p>
  
  <pre><code>-(void) drawStringToImage:(NSString*) str{
  
      [theIcon lockFocus];
  
      NSLog([@"Drawing String: " stringByAppendingString:str]);
     //  [NSDictionary dictionaryWithObjectsAndKeys:font, NSFontAttributeName, nil];
      [str drawAtPoint:NSMakePoint(5,500) withAttributes:nil];
  
      [theIcon unlockFocus];
  }
  </code></pre>