title: Set the origin of newly created window Cocoa/Applescript
body: <p>I'm trying to create new window with given origin in Cocoa/AppleScript type  application.</p>
  
  <p>I have Main NIB with main window and another one called <code>hud</code>. With button in main window I open new window (hud) in that way:
  <code>set  winn to NSWindowController's alloc()'s initWithWindowNibName_("hud")
  winn's showWindow_("jkb")</code>
  The window is showing up.</p>
  
  <p>I want to show it in different location on the screen but without any luck. I have tried every combination of those two: </p>
  
  <p><code>set myOrigin to {x:330,y:330}</code> or <code>set myOrigin to {330,330}</code></p>
  
  <p>with every line listed below:</p>
  
  <p><code>current application's winn's class "NSWindow"'s class "NSView"'s setFrameOrigin_(mySize)</code> --class "NSView" of class "NSWindow" of winn doesn’t understand the “setFrameOrigin_” message</p>
  
  <p><code>current application's winn's NSWindow's setFrameOrigin_(myOrigin)</code> --NSWindow of winn doesn’t understand the “setFrameOrigin_” message</p>
  
  <p><code>current application's winn's class "NSView"'s setFrameOrigin_(myOrigin)</code> --class "NSView" of winn doesn’t understand the “setFrameOrigin_” message</p>
  
  <p><code>current application's winn's jkb's class "NSView"'s setFrameOrigin_(myOrigin)</code> --class "NSView" of jkb of winn doesn’t understand the “setFrameOrigin_” message</p>
  
  <p><code>current application's jkb's  class "NSView"'s setFrameOrigin_(myOrigin)</code> --class "NSView" of jkb doesn’t understand the “setFrameOrigin_” message</p>
  
  <p><code>current application's jkb's  NSView's setFrameOrigin_(myOrigin)</code> --NSView of jkb doesn’t understand the “setFrameOrigin_” message</p>
  
  <p><code>current application's jkb's class "NSView"'s setFrameOrigin_(myOrigin)</code> --class "NSView" of jkb doesn’t understand the “setFrameOrigin_” message</p>
  
  <p><code>winn's jkb's class "NSView"'s setFrameOrigin_(myOrigin)</code> --this class is not key value coding-compliant for the key jkb.</p>
  
  <p>when I check through  <code>log ... frame</code> I see objects so why do they not respond to <code>setFrameOrgin_()</code> ?</p>