title: "Printing Not Allowed" in OSX app
body: <p>I am trying to print a simple NSString value. But It gives me a dialog saying:</p>
  
  <pre><code>"Printing Now Allowed
  
  This application is not allowed to print.
  
  Please contact your application vendor for an update."
  </code></pre>
  
  <p>The code I use is:</p>
  
  <pre><code>-(void)printText:(NSString*)text
  {
      NSTextView *printView = [[NSTextView alloc] initWithFrame:NSMakeRect(0, 0, 468, 648)];
      [printView setString:text];
      [[NSPrintOperation printOperationWithView:printView] runOperation];
  }
  </code></pre>
  
  <p>Any ideas?</p>