title: Check what type of data is currently copied on NSPasteBoard
body: <p>I am working on an application where I need to be able to know what type of data is just get copied onto <code>NSPasteBoard</code>. From documentation I knew that when we copy any content of file <code>NSPasteBoard</code> passes that content to pasteboard server from which any application on system can access that data.</p>
  <p>Now, I want poll the paste board server and determine whether user has just copied some textual content or not, if it is textual content then the application will will handle those data otherwise ignore other data such as pictures, folder etc.</p>
  <hr />
  <h3>Findings from Apple documentation</h3>
  <p>From documentation I found that, when we set data onto the pasteboard, we can <a href="https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSPasteboard_Class/Reference/Reference.html" rel="nofollow noreferrer">setData types</a>. But I am not 100% sure what type of datatype is being set if we copy some text content on system. The parameter of the <code>dataType</code> in <code>setData</code> method is <code>NSString</code>.</p>
  <hr />
  <p>Any further guidance will be very helpful.</p>