title: use iPhone as keyboard wedge with bluetooth
body: <p>I'm trying to create an application where I can send a string from an iPhone to an active textfield on my mac.  I'm coming from a Microsoft background and they call it focus.  The active textfield is not part of my application (3rd party).</p>
  
  <p>I tested the concept by creating an iOS app to send a string to a mac via bluetooth. The mac (cocoa app) presents the string, in a label, in an NSWindow.</p>
  
  <p>I want to create a keyboard wedge like a USB device to input the string in a textfield with   a Safari webpage open using the active text box.  I see there is a CGEventCreateKeyboardEvent in Apple's documentation.  My question is can I pass the entire string to a Keyboard event with out having to input each CGKeyCode possibilities, and coding each true/false for keyup and keydown?</p>
  
  <p>I must be missing a better way...</p>