title: Cocoa interface: 2d slider
body: <p>I am looking for a 2D slider in Cocoa.</p>
  <p>It should be something similar to this:</p>
  <p><a href="https://i.stack.imgur.com/TzFaQ.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TzFaQ.gif" alt="a busy cat" /></a><br />
  <sub>(source: <a href="https://reference.wolfram.com/mathematica/ref/Files/Slider2D.en/O_1.gif" rel="nofollow noreferrer">wolfram.com</a>)</sub></p>
  <p>which is Mathematica's 2D slider <a href="https://reference.wolfram.com/language/ref/Slider2D.html" rel="nofollow noreferrer">look here</a>. It seems that there is nothing like this in Xcode interface builder.</p>
  <p>Basically my cocoa interface should show a room seen from above (the space where the 2d slider can move), and when I click on it, the 2D cursor moves to that location in the room.
  Any ideas on how to do this?</p>
  <p>An easy way would be to have 2 orthogonal 1D slider, but it's not a nice looking solution.</p>
  <p>Cheers!</p>